--- a/jdk/src/windows/native/sun/java2d/d3d/D3DPipelineManager.cpp Tue May 10 18:28:05 2011 +0400
+++ b/jdk/src/windows/native/sun/java2d/d3d/D3DPipelineManager.cpp Wed May 11 15:00:25 2011 +0400
@@ -191,6 +191,14 @@
pMgr = D3DPipelineManager::GetInstance();
RETURN_IF_NULL(pMgr);
hMon = pMgr->pd3d9->GetAdapterMonitor(adapter);
+
+ /*
+ * If we don't have devices initialized yet, no sense to clear them.
+ */
+ if (!Devices::GetInstance()){
+ return;
+ }
+
gdiScreen = AwtWin32GraphicsDevice::GetScreenFromHMONITOR(hMon);
JNU_CallStaticMethodByName(env, NULL,