check for null in Property.getStringValue for

Java object property values.
This commit is contained in:
hns 2001-08-30 17:59:51 +00:00
parent e787abefe7
commit e6cc8162d0
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@ public final class Property implements IProperty, Serializable {
case NODE:
return nvalue.getName ();
case JAVAOBJECT:
return jvalue.toString ();
return jvalue == null ? null : jvalue.toString ();
}
return "";
}

View file

@ -268,7 +268,7 @@ public final class Property implements IProperty, Serializable, Cloneable {
case NODE:
return nhandle.getID ();
case JAVAOBJECT:
return jvalue.toString ();
return jvalue == null ? null : jvalue.toString ();
}
return "";
}