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

Change the order to prevent NullPointerExceptions

This commit is contained in:
Lukas Reschke 2015-06-02 16:56:35 +02:00
parent 267c7cfd08
commit b102d1cdf9

View File

@ -218,7 +218,7 @@ public class AccountUtils {
if (client != null) { if (client != null) {
String cookiesString = client.getCookiesString(); String cookiesString = client.getCookiesString();
if (!cookiesString.equals("")) { if (!"".equals(cookiesString)) {
ac.setUserData(savedAccount, Constants.KEY_COOKIES, cookiesString); ac.setUserData(savedAccount, Constants.KEY_COOKIES, cookiesString);
// Log_OC.d(TAG, "Saving Cookies: "+ cookiesString ); // Log_OC.d(TAG, "Saving Cookies: "+ cookiesString );
} }