1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Check if account.name is null in OwnCloudClientMap#saveClient

This commit is contained in:
masensio 2014-06-10 13:58:14 +02:00
parent dd0831b9fd
commit 1b3af22b89

View File

@ -105,7 +105,7 @@ public class OwnCloudClientMap {
// Account Manager // Account Manager
AccountManager ac = AccountManager.get(context.getApplicationContext()); AccountManager ac = AccountManager.get(context.getApplicationContext());
if (account!= null) { if (account.name != null) {
OwnCloudClient client = mClients.get(account.name); OwnCloudClient client = mClients.get(account.name);
Cookie[] cookies =client.getState().getCookies(); Cookie[] cookies =client.getState().getCookies();