Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 160ad99e authored by Tobias Kaminsky's avatar Tobias Kaminsky Committed by GitHub
Browse files

Merge pull request #76 from nextcloud/restoreCookies

Restore cookies: catch SecurityException
parents 9b282c04 6d78e4a3
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -297,7 +297,13 @@ public class AccountUtils {

		Uri serverUri = (client.getBaseUri() != null)? client.getBaseUri() : client.getWebdavUri();

		String cookiesString = am.getUserData(account, Constants.KEY_COOKIES);
		String cookiesString = null;
		try {
			cookiesString = am.getUserData(account, Constants.KEY_COOKIES);
		} catch (SecurityException e) {
			Log_OC.e(TAG, e.getMessage());
		}

		if (cookiesString !=null) {
			String[] cookies = cookiesString.split(";");
			if (cookies.length > 0) {