Author: hansbak
Date: Tue Sep 1 13:12:46 2009
New Revision: 810019
URL:
http://svn.apache.org/viewvc?rev=810019&view=revLog:
correction in testing for empty...could cause a NPE
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java?rev=810019&r1=810018&r2=810019&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java Tue Sep 1 13:12:46 2009
@@ -1109,7 +1109,7 @@
if (dataResource != null) {
mimeTypeId = dataResource.getString("mimeTypeId");
}
- if (UtilValidate.isNotEmpty(content.get("mimeTypeId"))) {
+ if (UtilValidate.isNotEmpty(content)) {
mimeTypeId = content.getString("mimeTypeId");
}