Skip to content

Commit

Permalink
Catch SecurityException in addition to IOException. (#1227)
Browse files Browse the repository at this point in the history
Fixes #1213, not by adding the doPrivileged, but by coping with lack of access to the file by pretending it doesn't exist.
  • Loading branch information
hakanai authored and kcooney committed Oct 14, 2016
1 parent 25495b3 commit a251896
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/junit/runner/BaseTestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ private static void readPreferences() {
setPreferences(new Properties(getPreferences()));
getPreferences().load(is);
} catch (IOException ignored) {
} catch (SecurityException ignored) {
} finally {
try {
if (is != null) {
Expand Down

0 comments on commit a251896

Please sign in to comment.