github-advanced-security[bot] commented on code in PR #1258:
URL: https://github.com/apache/syncope/pull/1258#discussion_r2653376059
##########
core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/DefaultRealmPushResultHandler.java:
##########
@@ -126,7 +123,7 @@
result.setOperation(ResourceOperation.NONE);
result.setAnyType(realm == null ? null :
SyncopeConstants.REALM_ANYTYPE);
result.setStatus(ProvisioningReport.Status.IGNORE);
- result.setKey(realmKey);
+ result.setKey(realm.getKey());
Review Comment:
## Dereferenced variable may be null
Variable [realm](1) may be null at this access as suggested by [this](2)
null guard.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2481)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]