You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by lu...@apache.org on 2005/01/19 15:47:30 UTC
cvs commit: jakarta-slide/src/share/org/apache/slide/content NodeProperty.java
luetzkendorf 2005/01/19 06:47:30
Modified: src/share/org/apache/slide/content NodeProperty.java
Log:
null as property value now will be treated as empty string;
because of problems with (oracle) rdbms
Revision Changes Path
1.30 +8 -8 jakarta-slide/src/share/org/apache/slide/content/NodeProperty.java
Index: NodeProperty.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/content/NodeProperty.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- NodeProperty.java 21 Dec 2004 16:12:44 -0000 1.29
+++ NodeProperty.java 19 Jan 2005 14:47:30 -0000 1.30
@@ -115,18 +115,18 @@
* @param namespace Namespace
*/
public NodeProperty(String name, Object value, String namespace) {
- if (value == null) throw new NullPointerException();
+ //if (value == null) throw new NullPointerException();
this.propertyName = PropertyName.getPropertyName(name, namespace);
- this.value = value;
+ this.value = value == null ? "" : value;
this.type = "";
this.kind = determineKind(this.propertyName.getNamespace(),
this.propertyName.getName());
}
public NodeProperty(PropertyName name, Object value) {
- if (value == null) throw new NullPointerException();
+ //if (value == null) throw new NullPointerException();
this.propertyName = name;
- this.value = value;
+ this.value = value == null ? "" : value;
this.type = "";
this.kind = determineKind(this.propertyName.getNamespace(),
this.propertyName.getName());
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org