From: <eli...@us...> - 2006-11-24 15:10:17
|
Revision: 2680 http://svn.sourceforge.net/java-game-lib/?rev=2680&view=rev Author: elias_naur Date: 2006-11-24 07:10:15 -0800 (Fri, 24 Nov 2006) Log Message: ----------- Windows: Fix potential NPE Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java 2006-11-24 15:03:05 UTC (rev 2679) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDisplay.java 2006-11-24 15:10:15 UTC (rev 2680) @@ -300,7 +300,7 @@ * is maximized helps some gfx recover from fullscreen */ try { - if (Display.getContext().isCurrent()) + if (Display.getContext() != null && Display.getContext().isCurrent()) Display.getContext().makeCurrent(); } catch (LWJGLException e) { LWJGLUtil.log("Exception occurred while trying to make context current: " + e); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |