Commit 4b61e135 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE

parent 4455c1e7
......@@ -190,7 +190,8 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
@Override
public void onDisconnected() {
mService.removeCallback(this);
if (mService != null)
mService.removeCallback(this);
super.onDisconnected();
}
......
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