8000486: REGRESSION: Three java2d tests fail since jdk8b58 on Windows 7 with NullPointerException
authorbagiras
Thu, 25 Oct 2012 09:55:33 +0400
changeset 14304 6a1cc5fc1ba0
parent 14303 de2b26a9e1c3
child 14305 52548c249171
8000486: REGRESSION: Three java2d tests fail since jdk8b58 on Windows 7 with NullPointerException Reviewed-by: flar, art
jdk/src/windows/classes/sun/java2d/ScreenUpdateManager.java
--- a/jdk/src/windows/classes/sun/java2d/ScreenUpdateManager.java	Wed Oct 24 18:27:14 2012 +0400
+++ b/jdk/src/windows/classes/sun/java2d/ScreenUpdateManager.java	Thu Oct 25 09:55:33 2012 +0400
@@ -111,7 +111,7 @@
                                                    SurfaceData oldsd)
     {
         SurfaceData surfaceData = peer.getSurfaceData();
-        if (surfaceData.isValid()) {
+        if (surfaceData == null || surfaceData.isValid()) {
             return surfaceData;
         }
         peer.replaceSurfaceData();