mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-22 00:59:34 +01:00
fixed npe
This commit is contained in:
@@ -994,7 +994,11 @@ public final class CliParser {
|
|||||||
* @return the value of cveValidForHours
|
* @return the value of cveValidForHours
|
||||||
*/
|
*/
|
||||||
public Integer getCveValidForHours() {
|
public Integer getCveValidForHours() {
|
||||||
return Integer.parseInt(line.getOptionValue(ARGUMENT.CVE_VALID_FOR_HOURS));
|
String v = line.getOptionValue(ARGUMENT.CVE_VALID_FOR_HOURS);
|
||||||
|
if (v != null) {
|
||||||
|
return Integer.parseInt(v);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user