Skip to content

Commit

Permalink
Address #701 with catch of excpetion thrown by Android internals
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgyoung committed Aug 15, 2018
1 parent 9c14a6a commit be2e811
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/altbeacon/beacon/service/ScanHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ void stopAndroidOBackgroundScan() {
}
} catch (SecurityException e) {
LogManager.e(TAG, "SecurityException stopping Android O background scanner");
} catch (RuntimeException e) {
// Needed to stop a crash caused by internal Android throw. See issue #701
LogManager.e(TAG, "Unexpected runtime exception stopping Android O background scanner", e);
}
}

Expand Down

0 comments on commit be2e811

Please sign in to comment.