src/nitlight: Updated client to avoid crashes on unparsed modules
authorLucas Bajolet <r4pass@hotmail.com>
Mon, 16 May 2016 18:41:42 +0000 (14:41 -0400)
committerLucas Bajolet <r4pass@hotmail.com>
Mon, 16 May 2016 18:41:42 +0000 (14:41 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

src/nitlight.nit

index 165ea13..176ec5f 100644 (file)
@@ -41,7 +41,7 @@ var args = toolcontext.option_context.rest
 var mmodules = modelbuilder.parse_full(args)
 modelbuilder.run_phases
 
-if opt_full.value then mmodules = model.mmodules
+if opt_full.value then mmodules = modelbuilder.parsed_modules
 
 var dir = opt_dir.value
 if dir != null then