Skip to content

Commit

Permalink
fix: Guard against NPE when fetching datastreams without any properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kuseman committed Feb 7, 2025
1 parent fd2b3b2 commit 4d2018f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ private static void appendDataStreamMappings(IQuerySession session, String catal
Map<String, Object> mappings = itt.index_template.template.mappings;
@SuppressWarnings("unchecked")
Map<String, Object> properties = (Map<String, Object>) mappings.get("properties");

mergeProperties(result, ESCatalog.SINGLE_TYPE_TABLE_NAME, mappings, properties, itt.name);
if (properties != null)
{
mergeProperties(result, ESCatalog.SINGLE_TYPE_TABLE_NAME, mappings, properties, itt.name);
}
}
}

Expand Down

0 comments on commit 4d2018f

Please sign in to comment.