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

Unverified Commit a915fb68 authored by tobiasKaminsky's avatar tobiasKaminsky
Browse files

catch SecurityException

parent 3fd5bded
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) {