浏览代码

Merge pull request #8334 from nextcloud/npeOnNonExistingAccount

Prevent NPE on non-existing account
Tobias Kaminsky 4 年之前
父节点
当前提交
126a639fd0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java

+ 1 - 1
src/main/java/com/owncloud/android/operations/RefreshFolderOperation.java

@@ -336,7 +336,7 @@ public class RefreshFolderOperation extends RemoteOperation {
 
         try {
             client = OwnCloudClientFactory.createNextcloudClient(mAccount, mContext);
-        } catch (AccountUtils.AccountNotFoundException e) {
+        } catch (AccountUtils.AccountNotFoundException | NullPointerException e) {
             Log_OC.e(this, "Update of predefined status not possible!");
             return;
         }