Skip to content

Commit

Permalink
Merge pull request #298 from CybOXProject/bugfix-297
Browse files Browse the repository at this point in the history
Fix None valueOf with apply_condition/delimeter
  • Loading branch information
gtback committed Oct 6, 2017
2 parents 58635c0 + b22447a commit a2f5d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cybox/bindings/cybox_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3372,7 +3372,7 @@ def exportAttributes(self, lwrite, level, already_processed, namespace_='cyboxCo
if self.condition is not None:

lwrite(' condition=%s' % (quote_attrib(self.condition), ))
if self.apply_condition is not None and (self.delimiter is not None and self.delimiter in self.valueOf_):
if self.apply_condition is not None and (self.delimiter is not None and self.valueOf_ is not None and self.delimiter in self.valueOf_):

lwrite(' apply_condition=%s' % (quote_attrib(self.apply_condition), ))
if self.extensiontype_ is not None:
Expand Down

0 comments on commit a2f5d50

Please sign in to comment.