author | weijun |
Thu, 08 Mar 2018 14:04:39 +0800 | |
changeset 52155 | c31b6e1c4383 |
parent 52154 | a4d4c609d70c |
child 52156 | 1801fada294a |
src/jdk.crypto.mscapi/windows/native/libsunmscapi/security.cpp | file | annotate | diff | comparison | revisions |
--- a/src/jdk.crypto.mscapi/windows/native/libsunmscapi/security.cpp Tue Oct 16 19:07:47 2018 -0400 +++ b/src/jdk.crypto.mscapi/windows/native/libsunmscapi/security.cpp Thu Mar 08 14:04:39 2018 +0800 @@ -311,6 +311,9 @@ } result = env->NewByteArray(length); + if (result == NULL) { + __leave; + } env->SetByteArrayRegion(result, 0, length, (jbyte*) pbData); } else { // length == 0