1. Chempound
  2. Untitled project
  3. chempound

Commits

Sam Adams  committed 98e2995

FIx to metadata deposit

  • Participants
  • Parent commits 67d0acb
  • Branches default

Comments (0)

Files changed (1)

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

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