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

Check context validity while browsing

parent d6c964c1
......@@ -110,10 +110,10 @@ public class FileBrowserFragment extends BaseBrowserFragment {
directory = new MediaWrapper(AndroidUtil.PathToUri(mediaDirLocation));
if (TextUtils.equals(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY, mediaDirLocation))
mAdapter.addItem(directory, false, false);
if (mReadyToDisplay) {
if (mReadyToDisplay && context != null) {
context.runOnUiThread(new Runnable() {
public void run() {
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