ModuleUtil#normalisePath() throws NullPointerException explicitly if baseDir is null.