mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-16 21:10:57 +08:00
Add null check
This commit is contained in:
parent
bca7b8e284
commit
94ff1487e1
@ -246,7 +246,8 @@ public class CaptureService extends VpnService implements Runnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
runPacketLoop(mParcelFileDescriptor.detachFd(), this, Build.VERSION.SDK_INT);
|
||||
if(mParcelFileDescriptor != null)
|
||||
runPacketLoop(mParcelFileDescriptor.detachFd(), this, Build.VERSION.SDK_INT);
|
||||
}
|
||||
|
||||
/* The following methods are called from native code */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user