}\r
\r
// int hour = new Date().getHours()+1; // scroll to current hour\r
- final int hour = this.date.getHours() + 1; // scroll to selected\r
+ Date d = (this.date != null ? this.date : new Date());\r
+ final int hour = d.getHours() + 1; // scroll to selected\r
// hour\r
final int h1 = hourPanel.getOffsetHeight() / 2;\r
final int oh = hourTable.getOffsetHeight();\r
}\r
\r
public List getEntries(Date date, int resolution) {\r
+ final ArrayList res = new ArrayList();\r
+ if (date == null) {\r
+ return res;\r
+ }\r
final List entries = (List) dates.get(date.getYear() + ""\r
+ date.getMonth() + "" + date.getDate());\r
- final ArrayList res = new ArrayList();\r
+\r
if (entries == null) {\r
return res;\r
}\r