Mercurial > hg > shenandoah-preopenjdk-archive > openjdk8 > jdk
changeset 9290:6ce6cf32d30f
8035860: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/MouseInfo.cpp
Reviewed-by: anthony, serb
author | pchelko |
---|---|
date | Mon, 31 Mar 2014 14:42:53 +0400 |
parents | 6f4ae5683b93 |
children | 467fd9e9f865 |
files | src/windows/native/sun/windows/MouseInfo.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/windows/native/sun/windows/MouseInfo.cpp Mon Mar 31 14:33:11 2014 +0400 +++ b/src/windows/native/sun/windows/MouseInfo.cpp Mon Mar 31 14:42:53 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);