changeset 4095:0896c9712cf0

7035209: 6u26 ea b01 - running an applet with old plugin crashes in awt.dll Reviewed-by: art, amenkov
author bagiras
date Wed, 27 Apr 2011 15:26:38 +0400
parents 1be42326f1c2
children 1eaff0300541
files src/windows/native/sun/java2d/d3d/D3DPipelineManager.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/java2d/d3d/D3DPipelineManager.cpp	Wed Apr 27 13:43:22 2011 +0400
+++ b/src/windows/native/sun/java2d/d3d/D3DPipelineManager.cpp	Wed Apr 27 15:26:38 2011 +0400
@@ -187,6 +187,7 @@
     }
 
     JNIEnv *env = (JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2);
+    RETURN_IF_NULL(env);
 
     pMgr = D3DPipelineManager::GetInstance();
     RETURN_IF_NULL(pMgr);