javauis/lcdui_qt/src/javax/microedition/lcdui/game/GameCanvas.java
changeset 78 71ad690e91f5
parent 23 98ccebc37403
--- a/javauis/lcdui_qt/src/javax/microedition/lcdui/game/GameCanvas.java	Fri Sep 17 16:44:34 2010 +0300
+++ b/javauis/lcdui_qt/src/javax/microedition/lcdui/game/GameCanvas.java	Mon Oct 04 11:29:25 2010 +0300
@@ -105,12 +105,19 @@
     /**
      * By default this renders the frameBuffer at (0,0).
      *
-     * @param g Graphics object
+     * @param aGraphics Graphics object
+     * @throws NullPointerException if aGraphics is null
      */
-    public void paint(javax.microedition.lcdui.Graphics g)
+    public void paint(javax.microedition.lcdui.Graphics aGraphics)
     {
+        // Graphics can not be null
+        if (aGraphics == null)
+        {
+            throw new NullPointerException();
+        }
+
         // If the Graphics doesn't belong to the frame buffer
-        LCDUIInvoker.renderGraphics(this, g);
+        LCDUIInvoker.renderGraphics(this, aGraphics);
     }
 
     /**