Author: hansbak
Date: Fri Sep 25 09:30:11 2009
New Revision: 818782
URL:
http://svn.apache.org/viewvc?rev=818782&view=revLog:
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