diff --git a/impacket/dcerpc/v5/dcom/wmi.py b/impacket/dcerpc/v5/dcom/wmi.py index 79a1fb1afc..3f24facf1f 100644 --- a/impacket/dcerpc/v5/dcom/wmi.py +++ b/impacket/dcerpc/v5/dcom/wmi.py @@ -2613,7 +2613,7 @@ def SpawnInstance(self): def createProperties(self, properties): for property in properties: # Do we have an object property? - if properties[property]['type'] == CIM_TYPE_ENUM.CIM_TYPE_OBJECT.value: + if properties[property]['type'] == CIM_TYPE_ENUM.CIM_TYPE_OBJECT.value and properties[property]['value'] != None: # Yes.. let's create an Object for it too objRef = OBJREF_CUSTOM() objRef['iid'] = self._iid