click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r829740 - /incubator/click/trunk/click/examples/src/org/apache/click/examples/page/BorderPage.java
Date Mon, 26 Oct 2009 09:39:38 GMT
Author: sabob
Date: Mon Oct 26 09:39:38 2009
New Revision: 829740

URL: http://svn.apache.org/viewvc?rev=829740&view=rev
Log:
LogoutPage onSecurityCheck returns false, meaning no rootMenu is created. Added guard for
that condition.

Modified:
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/BorderPage.java

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/BorderPage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/BorderPage.java?rev=829740&r1=829739&r2=829740&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/BorderPage.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/BorderPage.java
Mon Oct 26 09:39:38 2009
@@ -80,7 +80,9 @@
 
     public void onDestroy() {
         // Remove menu for when BorderPage is Serialized to disk
-        removeControl(rootMenu);
+        if (rootMenu != null) {
+            removeControl(rootMenu);
+        }
     }
 
     // --------------------------------------------------------- Public Methods



Mime
View raw message