Skip to content

Commit

Permalink
Revert change, causing NPE on runTestViaConfig() test
Browse files Browse the repository at this point in the history
  • Loading branch information
roimenashe committed Jun 19, 2024
1 parent 345a2c2 commit 2717ff2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,13 @@ public Builder withKeyField(String fieldName) {
}

public Builder withKeyFieldAndStoreAsBin(String fieldName, boolean storeAsBin) {
if (this.classConfig.getKey() == null) {
this.classConfig.setKey(new KeyConfig());
}
this.validateFieldExists(fieldName);
this.classConfig.getKey().setField(fieldName);
this.classConfig.getKey().setStoreAsBin(storeAsBin);
return withKeyField(fieldName);
return this;
}

public Builder withKeyGetterAndSetterOf(String getterName, String setterName) {
Expand Down

0 comments on commit 2717ff2

Please sign in to comment.