changeset 23326:4b7f5c8d649d

8035860: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/MouseInfo.cpp Reviewed-by: anthony, serb
author pchelko
date Thu, 27 Feb 2014 22:54:14 +0400
parents 4c3942938b0d
children c7aca991f60e
files jdk/src/windows/native/sun/windows/MouseInfo.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/windows/native/sun/windows/MouseInfo.cpp	Thu Feb 27 19:01:32 2014 +0400
+++ b/jdk/src/windows/native/sun/windows/MouseInfo.cpp	Thu Feb 27 22:54:14 2014 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
@@ -95,7 +95,9 @@
         env->DeleteLocalRef(pointClassLocal);
     }
     xID = env->GetFieldID(pointClass, "x", "I");
+    CHECK_NULL_RETURN(xID, (jint)0);
     yID = env->GetFieldID(pointClass, "y", "I");
+    CHECK_NULL_RETURN(yID, (jint)0);
     env->SetIntField(point, xID, pt.x);
     env->SetIntField(point, yID, pt.y);