new marshaller instance ensures we use marshalling properties and correct validation...
[vamsas.git] / src / uk / ac / vamsas / client / VorbaId.java
index 8ffee9e..4ba6c0b 100644 (file)
@@ -38,8 +38,13 @@ public class VorbaId {
       return vobject.vorbaId;
     }
   }
+  /**
+   * protected VorbaId constructor used when turning XML ID strings into vorba IDs
+   * @param id
+   * @return VorbaId object or null if string was null.
+   */
   protected static VorbaId newId(String id) {
-    return new VorbaId(id);
+    return (id==null) ? null : new VorbaId(id);
   }
   /**
    * @return Returns the id.