geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r659487 - /geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/layout/DefaultLayoutManager.java
Date Fri, 23 May 2008 10:05:35 GMT
Author: jdillon
Date: Fri May 23 03:05:34 2008
New Revision: 659487

URL: http://svn.apache.org/viewvc?rev=659487&view=rev
Log:
Assert we have an applicationManager instance

Modified:
    geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/layout/DefaultLayoutManager.java

Modified: geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/layout/DefaultLayoutManager.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/layout/DefaultLayoutManager.java?rev=659487&r1=659486&r2=659487&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/layout/DefaultLayoutManager.java
(original)
+++ geronimo/gshell/trunk/gshell-core/src/main/java/org/apache/geronimo/gshell/layout/DefaultLayoutManager.java
Fri May 23 03:05:34 2008
@@ -57,7 +57,10 @@
     }
 
     private Layout lookupLayout() {
+        assert applicationManager != null;
+
         Layout layout = applicationManager.getContext().getApplication().getLayout();
+
         if (layout == null) {
             throw new IllegalStateException("Layout has not been configured for application");
         }



Mime
View raw message