Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
Signed-off-by: Anshu Agarwal <anshukag@amazon.com>
  • Loading branch information
Anshu Agarwal committed Jan 8, 2024
1 parent 13e05b5 commit dedaa30
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public boolean isSet() {

@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeString(attributeName);
if (attributeName != null) {
out.writeString(attributeName);
}
out.writeGenericValue(weights);
}

Expand Down

0 comments on commit dedaa30

Please sign in to comment.