Skip to content

Commit

Permalink
add null check for suggestion.getProposedBy
Browse files Browse the repository at this point in the history
  • Loading branch information
ahakanzn committed Oct 8, 2024
1 parent 4916f1d commit ee59aee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ private boolean isEmptyAddress(Address address) {
private void lockFields(R entityOld, R entityNew) {
List<MasterSourceUtils.LockableField> fieldsToLock;
if (entityOld instanceof CollectionChangeSuggestion
&& entityOld.getProposedBy().equals(IH_SYNC_USER)) {
&& Objects.equals(entityOld.getProposedBy(), IH_SYNC_USER)) {
fieldsToLock = COLLECTION_LOCKABLE_FIELDS.get(MasterSourceType.IH);
fieldsToLock.forEach(
f -> {
Expand Down

0 comments on commit ee59aee

Please sign in to comment.