Skip to content

Commit b1915b8

Browse files
committed
fix exception in getCanonicalPath()
1 parent dbed6da commit b1915b8

File tree

1 file changed

+7
-1
lines changed
  • bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/data

1 file changed

+7
-1
lines changed

bundles/ilg.gnumcueclipse.packs.data/src/ilg/gnumcueclipse/packs/data/DataManager.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,13 @@ public boolean isLeaf(Leaf node) {
13061306
*/
13071307
private Node loadCachedInstalledObjectsForBuild(File file) {
13081308

1309-
fOut.println("Parsing cached file \"" + file.getCanonicalPath() + "\".");
1309+
String str;
1310+
try {
1311+
str = file.getCanonicalPath();
1312+
} catch (IOException e) {
1313+
str = file.getPath();
1314+
}
1315+
fOut.println("Parsing cached file \"" + str + "\".");
13101316

13111317
Node node = null;
13121318
try {

0 commit comments

Comments
 (0)