fix NPE for when mHandler is null
This commit is contained in:
parent
6832363905
commit
9b4ef18b13
|
@ -81,7 +81,8 @@ public class OrbotVpnService extends VpnService implements Handler.Callback {
|
|||
else if (action.equals("stop"))
|
||||
{
|
||||
stopVPN();
|
||||
mHandler.postDelayed(new Runnable () { public void run () { stopSelf(); }}, 1000);
|
||||
if (mHandler != null)
|
||||
mHandler.postDelayed(new Runnable () { public void run () { stopSelf(); }}, 1000);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue