소스 검색

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;
         }