mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 07:43:40 +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) {
|
||||
final String file = getString(key);
|
||||
if (file == null) {
|
||||
return null;
|
||||
}
|
||||
return new File(file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user