fixed bug related to an incorrect file path, resulted in NPE in the dependency bundling analyzer in rare cases

Former-commit-id: ac1846686bc1c96feaa4c3966dd91f6ad425542f
This commit is contained in:
Jeremy Long
2015-06-13 08:26:18 -04:00
parent 316bab6fff
commit f5aaaf1c63

View File

@@ -107,7 +107,7 @@ public class Dependency implements Serializable, Comparable<Dependency> {
*/
public Dependency(File file) {
this();
this.actualFilePath = file.getPath();
this.actualFilePath = file.getAbsolutePath();
this.filePath = this.actualFilePath;
this.fileName = file.getName();
this.fileExtension = FileUtils.getFileExtension(fileName);