mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-26 02:51:27 +01:00
updated getFile to return null if property is not defined
Former-commit-id: b9373294be1860ecc0bbe0193fe2704f0678db69
This commit is contained in:
@@ -265,6 +265,9 @@ public final class Settings {
|
|||||||
*/
|
*/
|
||||||
public static File getFile(String key) {
|
public static File getFile(String key) {
|
||||||
final String file = getString(key);
|
final String file = getString(key);
|
||||||
|
if (file == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return new File(file);
|
return new File(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user