Revision: 9023
Author: [email protected]
Date: Mon Oct 11 06:24:33 2010
Log: Guard against a potential NPE in MenuBar.

Review by: [email protected]
http://code.google.com/p/google-web-toolkit/source/detail?r=9023

Modified:
 /trunk/user/src/com/google/gwt/user/client/ui/MenuBar.java

=======================================
--- /trunk/user/src/com/google/gwt/user/client/ui/MenuBar.java Fri Oct 8 10:03:48 2010 +++ /trunk/user/src/com/google/gwt/user/client/ui/MenuBar.java Mon Oct 11 06:24:33 2010
@@ -944,7 +944,7 @@
       }
     }

-    if (!item.isEnabled()) {
+    if (item != null && !item.isEnabled()) {
       return;
     }

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to