Skip to content

Commit

Permalink
distributed exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftp committed May 22, 2018
1 parent 1fad6ed commit 9dc864d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public DistributedDataFrame load(JavaSparkContext sparkContext, int numPartition
} else if (t == Schema.ColType.DOUBLE) {
try {
doubleRow[doubleColNum] = Double.parseDouble(rowValue);
} catch (NumberFormatException e) {
} catch (NumberFormatException | NullPointerException e) {
doubleRow[doubleColNum] = Double.NaN;
}
doubleColNum++;
Expand Down

0 comments on commit 9dc864d

Please sign in to comment.