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

Prevent NPE

parent b1e7dee1
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,7 @@ public class VLCApplication extends Application {
@Override
public void onCanceled(Dialog dialog) {
if (dialog != null)
if (dialog != null && dialog.getContext() != null)
((DialogFragment)dialog.getContext()).dismiss();
}
......
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