You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2009/09/25 11:30:15 UTC

svn commit: r818782 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java

Author: hansbak
Date: Fri Sep 25 09:30:11 2009
New Revision: 818782

URL: http://svn.apache.org/viewvc?rev=818782&view=rev
Log:
check if no visual scheme defined in previous commit

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java?rev=818782&r1=818781&r2=818782&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataResourceWorker.java Fri Sep 25 09:30:11 2009
@@ -694,7 +694,7 @@
                      String docbookStyleLocation = docbookStyleSheets.get(0);
                      sourceFileLocation = new File(System.getProperty("ofbiz.home")+"/themes"+docbookStyleLocation);
                  }
-                 if(sourceFileLocation.exists()){
+                 if(sourceFileLocation != null && sourceFileLocation.exists()){
                          UtilMisc.copyFile(sourceFileLocation,targetFileLocation);
                  }
                     // get the template data for rendering