Catch SecurityException to prevent crash with URI

A SecurityException occurs when the app does not have the permissions to
write the specified URI
This commit is contained in:
emanuele-f
2021-09-15 11:46:27 +02:00
parent 24f10dd24c
commit 9c3c4ba121
@@ -213,7 +213,7 @@ public class CaptureService extends VpnService implements Runnable {
if(mDumper != null) {
try {
mDumper.startDumper();
} catch (IOException e) {
} catch (IOException | SecurityException e) {
reportError(e.getLocalizedMessage());
e.printStackTrace();
mDumper = null;