Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
asn1-value-editor
Commits
433da64a
Commit
433da64a
authored
Jul 18, 2016
by
Maxime Perrotin
Browse files
Ignore empty sequence fields
parent
ce824beb
Changes
1
Hide whitespace changes
Inline
Side-by-side
asn1_value_editor/asn1_value_editor.py
View file @
433da64a
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment