| # | Line 62 | Line 62 | public class ReportMaker { | |
|---|---|---|
| 62 | Report report = (Report)reportIt.next(); | |
| 63 | String reportField = report.getReportField(); | |
| 64 | long x = rs.getLong("receipt_date"); | |
| 65 | < | double y; |
| 65 | > | double y = 0.0; |
| 66 | try { | |
| 67 | y = Double.parseDouble(packet.getParam(reportField)); | |
| 68 | } | |
| 69 | catch (NumberFormatException e) { | |
| 70 | System.out.println("Skipped a non-numerical field for " + reportField + "."); | |
| 71 | + | continue; |
| 72 | + | } |
| 73 | + | catch (NullPointerException e) { |
| 74 | continue; | |
| 75 | } | |
| 76 | plotData.addPoint(x, y); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |