Skip to content

Commit

Permalink
Addresses #2997. Please test.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisDrogoul committed Jun 10, 2020
1 parent 6294803 commit e342f03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion msi.gama.core/src/msi/gama/common/util/FileUtils.java
Expand Up @@ -154,7 +154,10 @@ private static String findInWorkspace(final String fp, final IContainer containe
if (!file.exists()) {
if (mustExist) { return null; }
}
return file.getLocation().toString();
final IPath loc = file.getLocation();
// cf. #2997
if (loc == null) { return fp; }
return loc.toString();
// getLocation() works for regular and linked files
}

Expand Down

0 comments on commit e342f03

Please sign in to comment.