From 0ca77dcd405f75f912363904d4cc2f663b44d672 Mon Sep 17 00:00:00 2001 From: Binal Patel Date: Wed, 10 Jan 2024 10:42:58 -0800 Subject: [PATCH] Add null check --- .../labkey/study/controllers/ParticipantGroupController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/study/src/org/labkey/study/controllers/ParticipantGroupController.java b/study/src/org/labkey/study/controllers/ParticipantGroupController.java index 59d0c557936..1d620c6fb1a 100644 --- a/study/src/org/labkey/study/controllers/ParticipantGroupController.java +++ b/study/src/org/labkey/study/controllers/ParticipantGroupController.java @@ -1087,7 +1087,7 @@ public ApiResponse execute(ParticipantGroupSpecification form, BindException err } //if the label has changed, update the category label as well - if (!form.getCategoryLabel().equalsIgnoreCase(category.getLabel())) + if (null != form.getCategoryLabel() && !form.getCategoryLabel().equalsIgnoreCase(category.getLabel())) { category.setLabel(form.getCategoryLabel()); ParticipantGroupManager.getInstance().setParticipantCategory(getContainer(), getUser(), category);