Author: echatellier Date: 2012-03-16 12:00:21 +0100 (Fri, 16 Mar 2012) New Revision: 2828 Url: http://chorem.org/repositories/revision/jtimer/2828 Log: Fix potential NPE Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/unix/UnixSystemInfo.java Modified: trunk/src/main/java/org/chorem/jtimer/ui/system/unix/UnixSystemInfo.java =================================================================== --- trunk/src/main/java/org/chorem/jtimer/ui/system/unix/UnixSystemInfo.java 2012-03-16 09:29:46 UTC (rev 2827) +++ trunk/src/main/java/org/chorem/jtimer/ui/system/unix/UnixSystemInfo.java 2012-03-16 11:00:21 UTC (rev 2828) @@ -124,10 +124,10 @@ idleTime = screenSaverInfo.idle.longValue(); } } + + // free resources + X11.INSTANCE.XFree(screenSaverInfo.getPointer()); } - - // free resources - X11.INSTANCE.XFree(screenSaverInfo.getPointer()); } // free resources
participants (1)
-
echatellier@users.chorem.org