Skip to content

Commit

Permalink
#2 Check null value.
Browse files Browse the repository at this point in the history
  • Loading branch information
iprever committed Jun 5, 2017
1 parent 948bc3d commit ed334d8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public Map<String, Object> excute(Map config, String result) {

String column = split2[keyColumn];
Object value = split2[valueColumn];
if(value == null || value.toString().isEmpty()) {
logger.warn("'{}' column has null value", column);
continue;
}
if(sizeunit != null) {
value = sizeunit.to(Long.valueOf((String)value));
}
Expand Down

0 comments on commit ed334d8

Please sign in to comment.