mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-21 21:33:08 +00:00
Check if account.name is null in OwnCloudClientMap#saveClient
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user