geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r572511 - /geronimo/sandbox/gshell/trunk/gshell-layout/src/main/java/org/apache/geronimo/gshell/layout/LayoutManagerImpl.java
Date Tue, 04 Sep 2007 04:25:08 GMT
Author: jdillon
Date: Mon Sep  3 21:25:07 2007
New Revision: 572511

URL: http://svn.apache.org/viewvc?rev=572511&view=rev
Log:
some state sanity

Modified:
    geronimo/sandbox/gshell/trunk/gshell-layout/src/main/java/org/apache/geronimo/gshell/layout/LayoutManagerImpl.java

Modified: geronimo/sandbox/gshell/trunk/gshell-layout/src/main/java/org/apache/geronimo/gshell/layout/LayoutManagerImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-layout/src/main/java/org/apache/geronimo/gshell/layout/LayoutManagerImpl.java?rev=572511&r1=572510&r2=572511&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-layout/src/main/java/org/apache/geronimo/gshell/layout/LayoutManagerImpl.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-layout/src/main/java/org/apache/geronimo/gshell/layout/LayoutManagerImpl.java
Mon Sep  3 21:25:07 2007
@@ -109,6 +109,10 @@
     }
 
     public Layout getLayout() {
+        if (layout == null) {
+            throw new IllegalStateException("Layout has not been initalized");
+        }
+        
         return layout;
     }
 }



Mime
View raw message