fixed npe

This commit is contained in:
Jeremy Long
2015-10-27 06:15:34 -04:00
parent 92e7d9cf80
commit b704f72854

View File

@@ -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;
} }
/** /**