8000486: REGRESSION: Three java2d tests fail since jdk8b58 on Windows 7 with NullPointerException
Reviewed-by: flar, art
--- 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();