Commit 402c1992 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE on vlc dialogs

parent 113c9999
......@@ -453,7 +453,7 @@ public abstract class Dialog {
public void run() {
if (dialog instanceof IdDialog)
((IdDialog) dialog).dismiss();
if (sCallbacks != null)
if (sCallbacks != null && dialog != null)
sCallbacks.onCanceled(dialog);
}
});
......
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