Skip to content

Commit 6e622ae

Browse files
Properly check if jdk.native.openssl.lib property is set
Whether the property has been set at all needs to be checked before checking if it's not empty. Signed-off-by: Kostas Tsiounis <[email protected]>
1 parent 3b98104 commit 6e622ae

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)