Commits

Sam Adams  committed 98e2995

FIx to metadata deposit

  • Participants
  • Parent commits 67d0acb

Comments (0)

Files changed (1)

File 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;
     }