Skip to content
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public static long getTimeDurationHelper(String name, String vStr,
if (null == vUnit) {
LOG.warn("No unit for " + name + "(" + vStr + ") assuming " + unit);
vUnit = ParsedTimeDuration.unitFor(unit);
if(null == vUnit){
Comment thread
adoroszlai marked this conversation as resolved.
Outdated
throw new NullPointerException("Unexpected unit" + unit);
Comment thread
adoroszlai marked this conversation as resolved.
Outdated
}
} else {
vStr = vStr.substring(0, vStr.lastIndexOf(vUnit.suffix()));
}
Expand Down