ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/DBReporter2/ReportMaker.java
(Generate patch)

Comparing projects/cms/source/reports/DBReporter2/ReportMaker.java (file contents):
Revision 1.4 by pjm2, Sat Feb 3 20:47:11 2001 UTC vs.
Revision 1.5 by pjm2, Sat Feb 3 21:49:36 2001 UTC

# 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines