Skip to content
Snippets Groups Projects
Commit fd411dbd authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Browser: Prevent NPE on FAB click

parent 9172cbfe
No related branches found
No related tags found
No related merge requests found
......@@ -631,7 +631,7 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
positionInPlaylist = mediaLocations.size() - 1;
}
}
MediaUtils.openList(getActivity(), mediaLocations, positionInPlaylist);
if (getActivity() != null) MediaUtils.openList(getActivity(), mediaLocations, positionInPlaylist);
}
private final List<MediaLibraryItem> currentMediaList = new ArrayList<>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment