User: starksm Date: 01/10/18 18:20:26 Modified: src/main/org/jboss/configuration ConfigurationService.java Log: Only use the property editor if it is not null Revision Changes Path 1.40 +7 -3 jboss/src/main/org/jboss/configuration/ConfigurationService.java Index: ConfigurationService.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/configuration/ConfigurationService.java,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- ConfigurationService.java 2001/08/30 03:03:31 1.39 +++ ConfigurationService.java 2001/10/19 01:20:26 1.40 @@ -67,7 +67,7 @@ * @author <a href="mailto:[EMAIL PROTECTED]">Rickard Öberg</a>. * @author <a href="mailto:[EMAIL PROTECTED]">Scott Stark</a>. * @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a> - * @version $Revision: 1.39 $ + * @version $Revision: 1.40 $ * Revisions: * * 20010622 scott.stark: Clean up the unsafe downcast of Throwable to Exception @@ -249,8 +249,12 @@ typeClass = Class.forName(typeName); } PropertyEditor editor = PropertyEditorManager.findEditor(typeClass); - editor.setAsText(attributeValue); - Object value = editor.getValue(); + Object value = attributeValue; + if( editor != null ) + { + editor.setAsText(attributeValue); + value = editor.getValue(); + } log.debug(attributeName + " set to " + attributeValue + " in " + objectName); server.setAttribute(objectName, new Attribute(attributeName, value));
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development