File tree Expand file tree Collapse file tree
cSploit/src/org/csploit/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public void run() {
6161 @ Override
6262 public void buildMenuItem (MenuItem item ) {
6363 item .setTitle (isRunning () ? R .string .stop_monitor : R .string .start_monitor );
64- item .setEnabled (System .getTools ().networkRadar .isEnabled ());
64+ item .setEnabled (System .getTools ().networkRadar .isEnabled () && System . getNetwork () != null );
6565 }
6666
6767 private class Receiver extends org .csploit .android .tools .NetworkRadar .HostReceiver {
Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ public void onEvent(Event e) {
5656 public Child start (HostReceiver receiver ) throws ChildManager .ChildNotStartedException {
5757 String ifName ;
5858
59+ if (System .getNetwork () == null ) {
60+ throw new ChildManager .ChildNotStartedException ();
61+ }
62+
5963 ifName = System .getNetwork ().getInterface ().getDisplayName ();
6064
6165 return async (ifName , receiver );
You can’t perform that action at this time.
0 commit comments