# HG changeset patch # User serb # Date 1393334355 -14400 # Node ID fa1a77a296fc9caf6c297e54b0cbef0dd6412e70 # Parent b6523289a3b71dde33ac0e26bda929a4b46512b8 8033573: [parfait] warning from b128 for share/native/sun/awt/splashscreen/java_awt_SplashScreen.c: JNI exception pending Reviewed-by: anthony, bagiras diff -r b6523289a3b7 -r fa1a77a296fc jdk/src/share/native/sun/awt/splashscreen/java_awt_SplashScreen.c --- a/jdk/src/share/native/sun/awt/splashscreen/java_awt_SplashScreen.c Tue Feb 25 17:01:40 2014 +0400 +++ b/jdk/src/share/native/sun/awt/splashscreen/java_awt_SplashScreen.c Tue Feb 25 17:19:15 2014 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -24,8 +24,9 @@ */ #include "splashscreen_impl.h" +#include #include -#include +#include #include JNIEXPORT jint JNICALL @@ -212,8 +213,9 @@ if (!splash) { return JNI_FALSE; } + pBytes = (*env)->GetByteArrayElements(env, data, NULL); + CHECK_NULL_RETURN(pBytes, JNI_FALSE); size = (*env)->GetArrayLength(env, data); - pBytes = (*env)->GetByteArrayElements(env, data, NULL); rc = SplashLoadMemory(pBytes, size); (*env)->ReleaseByteArrayElements(env, data, pBytes, JNI_ABORT); return rc ? JNI_TRUE : JNI_FALSE;