roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r219101 - /incubator/roller/trunk/src/org/roller/business/ThemeManagerImpl.java
Date Thu, 14 Jul 2005 21:21:38 GMT
Author: agilliland
Date: Thu Jul 14 14:21:35 2005
New Revision: 219101

URL: http://svn.apache.org/viewcvs?rev=219101&view=rev
Log:
bug fix for null pointer which handles case when no themes are found on disk.

Modified:
    incubator/roller/trunk/src/org/roller/business/ThemeManagerImpl.java

Modified: incubator/roller/trunk/src/org/roller/business/ThemeManagerImpl.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/business/ThemeManagerImpl.java?rev=219101&r1=219100&r2=219101&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/business/ThemeManagerImpl.java (original)
+++ incubator/roller/trunk/src/org/roller/business/ThemeManagerImpl.java Thu Jul 14 14:21:35
2005
@@ -48,8 +48,9 @@
         // rather than be lazy we are going to load all themes from
         // the disk preemptively during initialization and cache them
         mLogger.debug("Initializing ThemeManagerImpl");
-        mLogger.info("Loading all themes from disk ... ");
+        
         this.themes = this.loadAllThemesFromDisk();
+        mLogger.info("Loaded "+this.themes.size()+" themes from disk.");
     }
     
     
@@ -187,6 +188,9 @@
             }
         };
         String[] themenames = themesdir.list(filter);
+        
+        if(themenames == null)
+            themenames = new String[0];
         
         // now go through each theme and read all it's templates
         Theme theme = null;



Mime
View raw message