perfsonar-dev - perfsonar: r3571 - branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/components
Subject: perfsonar development work
List archive
perfsonar: r3571 - branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/components
Chronological Thread
- From:
- To:
- Subject: perfsonar: r3571 - branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/components
- Date: Sat, 29 Mar 2008 07:17:55 -0400
Author: michael.bischoff
Date: 2008-03-29 07:17:55 -0400 (Sat, 29 Mar 2008)
New Revision: 3571
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/components/StatisticsPanel.java
Log:
defended against nullpointerException when there is no range
Modified:
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/components/StatisticsPanel.java
===================================================================
---
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/components/StatisticsPanel.java
2008-03-28 17:50:47 UTC (rev 3570)
+++
branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/components/StatisticsPanel.java
2008-03-29 11:17:55 UTC (rev 3571)
@@ -377,8 +377,10 @@
statsSeqFailField.setText(statistics.getSequenceFailures());
TimeRange range = statistics.getRange();
DateFormat iso = new
SimpleDateFormat(ISO8601_PATTERN);
- rangeStartField.setText(iso.format(range.getStart()));
- rangeEndField.setText(iso.format(range.getEnd()));
+ if(range!=null) {
+
rangeStartField.setText(iso.format(range.getStart()));
+
rangeEndField.setText(iso.format(range.getEnd()));
+ }
}
}
}
- perfsonar: r3571 - branches/perfsonarui/src/org/perfsonar/perfsonarui/flowsa/components, svnlog, 03/29/2008
Archive powered by MHonArc 2.6.16.