From bccaac0ad9d33258ba9e81925133f9ce83e3f295 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 18 Aug 2015 08:45:17 -0400 Subject: [PATCH] loader: identify_file do really return null is the path does not exists Signed-off-by: Jean Privat --- src/loader.nit | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/loader.nit b/src/loader.nit index 90404ba..f9f9cf7 100644 --- a/src/loader.nit +++ b/src/loader.nit @@ -374,6 +374,11 @@ redef class ModelBuilder path = candidate end + # Does the file exists? + if not path.file_exists then + return null + end + # Fast track, the path is already known var pn = path.basename(".nit") var rp = module_absolute_path(path) -- 1.7.9.5