Skip to content

Commit f879a77

Browse files
committed
Fix null check
1 parent ca64454 commit f879a77

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

semantickernel-api/src/main/java/com/microsoft/semantickernel/orchestration/PromptExecutionSettings.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,10 @@ public boolean equals(Object obj) {
384384
if (Double.compare(frequencyPenalty, other.frequencyPenalty) != 0) {
385385
return false;
386386
}
387-
if (maxTokens != other.maxTokens) {
387+
if (!Objects.equals(maxTokens, other.maxTokens)) {
388+
return false;
389+
}
390+
if (!Objects.equals(maxCompletionTokens, other.maxCompletionTokens)) {
388391
return false;
389392
}
390393
if (bestOf != other.bestOf) {

0 commit comments

Comments
 (0)