Commit fd411dbd authored by Geoffrey Métais's avatar Geoffrey Métais

Browser: Prevent NPE on FAB click

parent 9172cbfe
......@@ -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<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment