svn commit: r810019 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r810019 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java

hansbak-2
Author: hansbak
Date: Tue Sep  1 13:12:46 2009
New Revision: 810019

URL: http://svn.apache.org/viewvc?rev=810019&view=rev
Log:
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");
                 }