[TE] rootcause - prevent external null links
@@ -57,6 +57,10 @@ public class ResourceUtils {
String sourceName = externalLinkEntry.getKey();
String urlTemplate = externalLinkEntry.getValue();
+ if (sourceName == null || urlTemplate == null) {
+ continue;
+ }
+
putExternalLinkTimeContext(mergedAnomaly.getStartTime(), mergedAnomaly.getEndTime(), sourceName, context, externalLinkTimeGranularity);
StrSubstitutor strSubstitutor = new StrSubstitutor(context);
@@ -103,6 +107,10 @@ public class ResourceUtils {
String sourceName = externalLinkEntry.getKey();
String urlTemplate = externalLinkEntry.getValue();
+ if (sourceName == null || urlTemplate == null) {
+ continue;
+ }
+
putExternalLinkTimeContext(slice.getStart(), slice.getEnd(), sourceName, context, externalLinkTimeGranularity);
StrSubstitutor strSubstitutor = new StrSubstitutor(context);
