From: Jean Privat Date: Tue, 18 Aug 2015 12:45:17 +0000 (-0400) Subject: loader: identify_file do really return null is the path does not exists X-Git-Tag: v0.7.8~81^2~1 X-Git-Url: http://nitlanguage.org loader: identify_file do really return null is the path does not exists Signed-off-by: Jean Privat --- 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)