Skip to content

Commit

Permalink
Fix possible SecurityException while opening PCAP file
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-f committed Dec 2, 2023
1 parent a68cf1c commit c998fce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ private void pcapFileOpenResult(final ActivityResult result) {
executor.execute(() -> {
try (InputStream in_stream = getContentResolver().openInputStream(uri)) {
Utils.copy(in_stream, out);
} catch (IOException e) {
} catch (IOException | SecurityException e) {
e.printStackTrace();

runOnUiThread(() -> {
Expand Down

0 comments on commit c998fce

Please sign in to comment.