MINOR: Fix ChangeSummary NullPointerException (#20300)

This commit is contained in:
Mayur Singal 2025-03-19 18:37:06 +05:30 committed by GitHub
parent cd4892b7c0
commit 5da8a967cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -218,7 +218,8 @@ public class DataInsightsEntityEnricherProcessor
String descriptionSource = ChangeSource.INGESTED.value();
if (changeSummaryMap != null) {
if (changeSummaryMap.containsKey(changeSummaryKey)) {
if (changeSummaryMap.containsKey(changeSummaryKey)
&& changeSummaryMap.get(changeSummaryKey).getChangeSource() != null) {
descriptionSource = changeSummaryMap.get(changeSummaryKey).getChangeSource().value();
}
}