Fix missing check on set entity certification (#18713)

This commit is contained in:
IceS2 2024-11-20 19:04:03 +01:00 committed by GitHub
parent 6623ab17dc
commit 890a4f8755
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,8 +54,8 @@ public class SetEntityCertificationImpl implements JavaDelegate {
if (oCertification.isEmpty()) {
entity.setCertification(null);
} else {
if (oCertification.get().equals(oEntityCertification.get().getTagLabel().getTagFQN())) {
if (oEntityCertification.isPresent()
&& oCertification.get().equals(oEntityCertification.get().getTagLabel().getTagFQN())) {
return;
}