Index: tools/metrics/common/models.py |
diff --git a/tools/metrics/common/models.py b/tools/metrics/common/models.py |
index 3ba301c4eec8bfd368f0d983c9c24c7cb47ef4aa..bf79e57e01e4c628ccc3107f615a0c18e245b299 100644 |
--- a/tools/metrics/common/models.py |
+++ b/tools/metrics/common/models.py |
@@ -158,7 +158,8 @@ class ObjectNodeType(NodeType): |
self.float_attributes + |
self.string_attributes) |
for attr in attributes: |
- node.setAttribute(attr, str(obj[attr])) |
+ if obj[attr]: |
+ node.setAttribute(attr, str(obj[attr])) |
PutComments(node, obj['comments']) |