You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2013/11/10 22:12:51 UTC
svn commit: r1540552 -
/ofbiz/trunk/applications/content/src/org/ofbiz/content/data/DataServices.java
Author: lektran
Date: Sun Nov 10 21:12:51 2013
New Revision: 1540552
URL: http://svn.apache.org/r1540552
Log:
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.");
}