Skip to content

Commit

Permalink
Update NitriteDocument.java
Browse files Browse the repository at this point in the history
  • Loading branch information
anidotnet committed Sep 26, 2024
1 parent 4739a94 commit 5169f0f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ private void deepPut(String[] splits, Object value) {
throw new ValidationException("Invalid key provided");
}
String key = splits[0];
if (isNullOrEmpty(key)) {
throw new ValidationException("Invalid key provided");
}

if (splits.length == 1) {
// if last key, simply put in the current document
put(key, value);
Expand Down

0 comments on commit 5169f0f

Please sign in to comment.