Skip to content

Commit 6938d1c

Browse files
authored
Merge pull request ibmruntimes#483 from KostasTsiounis/fix_native_flag_check
Properly check if jdk.native.openssl.lib property is set
2 parents 3b98104 + 6e622ae commit 6938d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

closed/src/java.base/share/classes/jdk/crypto/jniprovider/NativeCrypto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private static long loadCryptoLibraries() {
116116
System.err.println("Native crypto library load succeeded - using native crypto library.");
117117
}
118118
} else {
119-
if (!nativeLibName.isEmpty()) {
119+
if ((nativeLibName != null) && !nativeLibName.isEmpty()) {
120120
throw new RuntimeException(nativeLibName + " is not available, crypto libraries are not loaded");
121121
}
122122
}

0 commit comments

Comments
 (0)