windowing/windowserver/nga/SERVER/POINTER.CPP
branchRCL_3
changeset 5 25f95128741d
parent 2 5e30ef2e26cb
child 17 e375a7921169
--- a/windowing/windowserver/nga/SERVER/POINTER.CPP	Wed Mar 31 23:34:07 2010 +0300
+++ b/windowing/windowserver/nga/SERVER/POINTER.CPP	Wed Apr 14 17:19:46 2010 +0300
@@ -81,7 +81,9 @@
 	iEmulatorRotatePointerCoords = WsIniFile->FindVar(KWSERVIniFileVarEmulatorRotPointCoords);
 #endif
 
-	iRootWindow = CWsTop::Screen()->RootWindow();
+	const CScreen* screen = CWsTop::Screen();
+	WS_ASSERT_ALWAYS(screen, EWsPanicNoScreen);
+	iRootWindow = screen->RootWindow();
 	
 	TMachineInfoV1Buf machineInfo;
 	UserHal::MachineInfo(machineInfo);