Author: lektran
Date: Sun Nov 10 21:12:51 2013
New Revision: 1540552
URL:
http://svn.apache.org/r1540552Log:
Remove null check (always yields false)
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataServices.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataServices.java?rev=1540552&r1=1540551&r2=1540552&view=diff==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataServices.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataServices.java Sun Nov 10 21:12:51 2013
@@ -414,9 +414,6 @@ public class DataServices {
if (UtilValidate.isEmpty(dataResourceTypeId) || dataResourceTypeId.startsWith("LOCAL_FILE")) {
fileName = prefix + sep + objectInfo;
file = new File(fileName);
- if (file == null) {
- throw new GenericServiceException("File: " + fileName + " is null.");
- }
if (!file.isAbsolute()) {
throw new GenericServiceException("File: " + fileName + " is not absolute.");
}