Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit e3baa9a

Browse files
committed
Null check
1 parent 589ee52 commit e3baa9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/appirio/tech/core/service/identity/resource/UserResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ public ApiResponse createObject(
498498
}
499499

500500
// Add business user role if needed
501-
if (user.getRegSource().matches("tcBusiness")) {
501+
if (user.getRegSource() != null && user.getRegSource().matches("tcBusiness")) {
502502
assignRoleByName("Business User", user);
503503
}
504504

0 commit comments

Comments
 (0)