mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-07-03 21:21:12 +08:00
Fix possible NullPointerException in apps context menu
This commit is contained in:
parent
88a9c747fd
commit
c98740c830
@ -238,6 +238,9 @@ public class AppsFragment extends Fragment implements ConnectionsListener, MenuP
|
||||
boolean whitelistChanged = false;
|
||||
AppStats app = mAdapter.getSelectedItem();
|
||||
|
||||
if(app == null)
|
||||
return super.onContextItemSelected(item);
|
||||
|
||||
if(id == R.id.block_app)
|
||||
blocklist.addApp(app.getUid());
|
||||
else if(id == R.id.unblock_app_permanently)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user