Commits

Sam Adams committed 98e2995

FIx to metadata deposit

Comments (0)

Files changed (1)

chempound-client/src/main/java/net/chempound/client/DepositItemRequest.java

     }
 
     public DepositItemRequest withMetadata(final Model metadata) {
-        this.metadata = ModelFactory.createDefaultModel().add(metadata);
+        this.metadata = metadata == null ? null : ModelFactory.createDefaultModel().add(metadata);
         return this;
     }