From cfaf162b6b33ac5282f503214b93c72fecd21b72 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Wed, 21 Oct 2015 20:34:01 -0400 Subject: [PATCH] modelviz: make the LinexComparator more robust by getting the model from a non-nullable object Signed-off-by: Jean Privat --- src/model/model_viz.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/model_viz.nit b/src/model/model_viz.nit index 9735136..06f2fb6 100644 --- a/src/model/model_viz.nit +++ b/src/model/model_viz.nit @@ -85,7 +85,7 @@ private class LinexComparator var subs = tree.sub[o] var minres = mini(subs.first) var maxres = maxi(subs.first) - var order = minres.model.mmodule_importation_hierarchy + var order = o.model.mmodule_importation_hierarchy for o2 in subs do var c = mini(o2) if c == null then continue -- 1.7.9.5