Skip to content

Commit

Permalink
Use more modern API (Java 1.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory authored Oct 22, 2023
1 parent 465f5a7 commit d978f39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public static CryptoRandom getCryptoRandom(final Properties props)
lastException = e;
errorMessage.append("CryptoRandom: [" + className + "] failed with " + e.getMessage());
} catch (final ExceptionInInitializerError initializerError) {
Throwable t = initializerError.getException();
Throwable t = initializerError.getCause();
if (t instanceof Exception) {
lastException = (Exception) t;
errorMessage.append("CryptoRandom: [" + className + "] initialization failed with " + t.getMessage());
Expand Down

0 comments on commit d978f39

Please sign in to comment.