Commit 433da64a authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Ignore empty sequence fields

parent ce824beb
......@@ -335,7 +335,9 @@ class asn1Editor(QTreeView):
ptr = ptr[i]
if asnType in ('SEQUENCE', 'SET'):
self.parseModel(root.child(i), dest=ptr)
if root.child(i).hasChildren():
# Discard empty sequence
self.parseModel(root.child(i), dest=ptr)
elif asnType == 'SEQOF':
state = ptr.GetState()
self.parseModel(root.child(i), nbRows=int(value), dest=ptr)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment