nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5e1eef8
)
ordered_tree: avoid abort if subs is empty
author
Jean Privat
<jean@pryen.org>
Sat, 26 Sep 2015 05:29:22 +0000
(
01:29
-0400)
committer
Jean Privat
<jean@pryen.org>
Sat, 26 Sep 2015 05:29:22 +0000
(
01:29
-0400)
Signed-off-by: Jean Privat <jean@pryen.org>
lib/ordered_tree.nit
patch
|
blob
|
history
diff --git
a/lib/ordered_tree.nit
b/lib/ordered_tree.nit
index
0b1d383
..
32cea45
100644
(file)
--- a/
lib/ordered_tree.nit
+++ b/
lib/ordered_tree.nit
@@
-149,6
+149,7
@@
class OrderedTree[E: Object]
do
if not sub.has_key(e) then return
var subs = sub[e]
+ if subs.is_empty then return
var last = subs.last
for e2 in subs do
if e2 != last then