Skip to content

Commit

Permalink
Catch NumberFormatException when parsing stage positions. Closes #454.
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Dec 18, 2009
1 parent 3d22885 commit 01d8537
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,10 @@ else if (pt < hashKeys.length) {
else if (tokens[j + 1].trim().equals("Slice Z positions")) {
for (int q=j + 2; q<tokens.length; q++) {
if (!tokens[q].trim().equals("")) {
zPositions.add(new Double(tokens[q].trim()));
try {
zPositions.add(new Double(tokens[q].trim()));
}
catch (NumberFormatException e) { }
}
}
}
Expand Down

0 comments on commit 01d8537

Please sign in to comment.