瀏覽代碼

fix npe on resume

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 6 年之前
父節點
當前提交
a37b34fc78
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java

+ 4 - 0
src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java

@@ -172,6 +172,10 @@ public class FileDetailSharingFragment extends Fragment implements UserListAdapt
         View view = inflater.inflate(R.layout.file_details_sharing_fragment, container, false);
         unbinder = ButterKnife.bind(this, view);
 
+        if (fileDataStorageManager == null) {
+            fileDataStorageManager = new FileDataStorageManager(account, fileDisplayActivity.getContentResolver());
+        }
+
         setupView();
 
         return view;