Commits

mrdon  committed 8feaf5f

Fixed when unable to use custom objecttypedeterminer
XW-508

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/2.0@1513e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits cd7c1aa
  • Branches 2.0, xwork_2_0_7

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork2/util/XWorkConverter.java

     protected HashSet<String> unknownMappings = new HashSet<String>(); 	// non-action (eg. returned value)
     
     protected TypeConverter defaultTypeConverter = new XWorkBasicConverter();
-    protected ObjectTypeDeterminer objectTypeDeterminer = ObjectTypeDeterminerFactory.getInstance();
+    protected ObjectTypeDeterminer objectTypeDeterminer = null;
 
 
     protected XWorkConverter() {
     }
 
     public ObjectTypeDeterminer getObjectTypeDeterminer() {
-        return objectTypeDeterminer;
+        if (objectTypeDeterminer == null) {
+        	return ObjectTypeDeterminerFactory.getInstance();
+        } else {
+        	return objectTypeDeterminer;
+        }
     }
 
     /**