Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] code refactor not to occur nullpointer exception #2820

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ private void deleteOrUpdateModelGroup(String modelGroupID, Boolean doesVersionCr
// This checks if model group is created when registering the version. If yes,
// model group is deleted since the version registration
// had failed. Else model group latest version is decremented by 1
if (doesVersionCreateModelGroup) {
if (Boolean.TRUE.equals(doesVersionCreateModelGroup)) {
DeleteRequest deleteModelGroupRequest = new DeleteRequest();
deleteModelGroupRequest.index(ML_MODEL_GROUP_INDEX).id(modelGroupID).setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE);
client.delete(deleteModelGroupRequest);
Expand Down
Loading