mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-17 23:04:07 +01:00
updated getFile to return null if property is not defined
Former-commit-id: 3dbd8d356cc509619fe8caa9539a4d01906aa3f9
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