From: <eli...@us...> - 2007-01-13 19:24:07
|
Revision: 2723 http://svn.sourceforge.net/java-game-lib/?rev=2723&view=rev Author: elias_naur Date: 2007-01-13 11:24:05 -0800 (Sat, 13 Jan 2007) Log Message: ----------- Display: Fixed a NPE when create() fails on context creation Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-10 13:55:42 UTC (rev 2722) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-01-13 19:24:05 UTC (rev 2723) @@ -277,7 +277,7 @@ return; } try { - if (context.isCurrent()) { + if (context != null && context.isCurrent()) { context.releaseDrawable(); Context.releaseCurrentContext(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |