We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8168ad3 commit 0c5c41fCopy full SHA for 0c5c41f
cybox/core/associated_object.py
@@ -20,7 +20,7 @@ def __init__(self, type_=None, association_type_=None, defined_object=None):
20
21
def to_obj(self):
22
obj = super(AssociatedObject, self).to_obj(core_binding.AssociatedObjectType())
23
- obj.set_Association_Type(self.association_type_.to_obj())
+ if self.assocation_type is not None : obj.set_Association_Type(self.association_type_.to_obj())
24
return obj
25
26
def to_dict(self):
0 commit comments