Author: doogie
Date: Fri Nov 13 09:18:17 2009
New Revision: 835785

URL: http://svn.apache.org/viewvc?rev=835785&view=rev
Log:
Fix creation when title=null.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelRelation.java

Modified: 
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelRelation.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelRelation.java?rev=835785&r1=835784&r2=835785&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelRelation.java 
(original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelRelation.java 
Fri Nov 13 09:18:17 2009
@@ -69,8 +69,8 @@
 
     /** Default Constructor */
     public ModelRelation(String type, String title, String relEntityName, 
String fkName, List<ModelKeyMap> keyMaps) {
-        this.title = title;
         if (title == null) title = "";
+        this.title = title;
         this.type = type;
         this.relEntityName = relEntityName;
         this.fkName = fkName;
@@ -107,9 +107,6 @@
 
     /** the title, gives a name/description to the relation */
     public String getTitle() {
-        if (this.title == null) {
-            this.title = "";
-        }
         return this.title;
     }
 


Reply via email to