mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 00:29:21 +01:00
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:
@@ -107,7 +107,7 @@ public class Dependency implements Serializable, Comparable<Dependency> {
|
|||||||
*/
|
*/
|
||||||
public Dependency(File file) {
|
public Dependency(File file) {
|
||||||
this();
|
this();
|
||||||
this.actualFilePath = file.getPath();
|
this.actualFilePath = file.getAbsolutePath();
|
||||||
this.filePath = this.actualFilePath;
|
this.filePath = this.actualFilePath;
|
||||||
this.fileName = file.getName();
|
this.fileName = file.getName();
|
||||||
this.fileExtension = FileUtils.getFileExtension(fileName);
|
this.fileExtension = FileUtils.getFileExtension(fileName);
|
||||||
|
|||||||
Reference in New Issue
Block a user