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

Prevent NPE

parent a1252bf4
......@@ -222,7 +222,8 @@ public class VLCApplication extends Application {
@Override
public void onCanceled(Dialog dialog) {
((DialogFragment)dialog.getContext()).dismiss();
if (dialog != null)
((DialogFragment)dialog.getContext()).dismiss();
}
@Override
......
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