Skip to content

Commit

Permalink
Merge pull request #3363 from nextcloud/backport/3357/stable-3.4.x
Browse files Browse the repository at this point in the history
[stable-3.4.x] FileDetailSharingFragment: fix npe on resume
  • Loading branch information
AndyScherzinger authored Dec 13, 2018
2 parents ed1eea4 + ad0d4be commit 25edbd9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
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;
Expand Down

0 comments on commit 25edbd9

Please sign in to comment.