From bd82cc11c7ba6480dd46adac43091869a3adbbf3 Mon Sep 17 00:00:00 2001 From: anemeth Date: Tue, 13 Feb 2024 13:10:20 -0800 Subject: [PATCH] Init property map if nil on ingest node --- packages/go/ein/ad.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/go/ein/ad.go b/packages/go/ein/ad.go index 8cb84e37e0..d1beb880de 100644 --- a/packages/go/ein/ad.go +++ b/packages/go/ein/ad.go @@ -35,9 +35,14 @@ func ConvertSessionObject(session Session) IngestibleSession { } func ConvertObjectToNode(item IngestBase, itemType graph.Kind) IngestibleNode { + itemProps := item.Properties + if itemProps == nil { + itemProps = make(map[string]any) + } + return IngestibleNode{ ObjectID: item.ObjectIdentifier, - PropertyMap: item.Properties, + PropertyMap: itemProps, Label: itemType, } }