mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Verify null recentCredential in SingleSessionManager.keepCreadentialsUpdated
This commit is contained in:
parent
24110ba178
commit
c2b5ddd236
@ -184,7 +184,7 @@ public class SingleSessionManager implements OwnCloudClientManager {
|
||||
|
||||
private void keepCredentialsUpdated(OwnCloudAccount account, OwnCloudClient reusedClient) {
|
||||
OwnCloudCredentials recentCredentials = account.getCredentials();
|
||||
if (!recentCredentials.getAuthToken().equals(
|
||||
if (recentCredentials != null && !recentCredentials.getAuthToken().equals(
|
||||
reusedClient.getCredentials().getAuthToken())) {
|
||||
reusedClient.setCredentials(recentCredentials);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user