There was a problem with a Velocity script
Page/schedule-daily-template
ErrorInvocation of method 'get' in class java.util.Collections$UnmodifiableRandomAccessList threw exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 @ schedule-daily-template[1,35]
Page source:
1:   #set ($event = $schedule.events.get(0))
2: 
3:   #if ($event.date)
4:  
5:    #if ($event.date.before($now))
6:       <!-- First event already passed -->
7: 
8: 
9: #if ($schedule.events.size() > 0)
10: 
11: <style type="text/css">
12:  .yui-overlay { border:1px solid gray;padding:1px;margin:0px; background: white; position: absolute;}
13:  .yui-overlay .bd { padding:1px; text-align: right; white-space: nowrap; }
14:  .notes { background-color: lightgrey; }
15:  .schedule-header { font-weight: bold; text-align: center;}
16: </style>
17: 
18: #set ($lastdate = "8/1/2005")
19: $wiki
20: <table id="scheduletable" class="schedule" align="center" border="0">
21: 
22: 
23:   #set ($lastsport = "")
24: #foreach ($event in $schedule.events)
25: 
26: #if ($event.conference || $formatter.isNull($request.getParameter("confonly"), "0").equals("0"))
27:     #set ($theDate= $formatter.formatDate($event.date, "EEEE, MMMM d"))
28:     #if (! $lastDate.equals($theDate))
29:      <tr class="date"><td colspan="8">$theDate</td></tr>
30:      #set ($lastsport = "")
31:     #end
32:   #set ($lastDate = $theDate)
33: 
34: #if ($lastsport != $event.sport)
35:  <tr class="title"><td colspan="8">$event.sport</td></tr>
36:  #set ($lastsport = $event.sport)
37: #end
38: 
39: 
40: 
41: 
42: 
43: #set ($row = ($velocityCount + 1) % 2)
44:     #if ($event.conference)
45:      <tr class="conf">
46:     #else
47:      <tr class="overall">
48:     #end
49:   <td nowrap valign="top">
50:     $formatter.formatSiteTime($event)
51:   </td>
52:  #foreach ($team in $event.teams)
53:   <td valign="top">
54:       $team.name
55:   </td>
56:   <td align="center" valign="top" style="padding-left: 10px; padding-right: 10px;"#if ($event.inProgress) class="inprogress"#end>
57:       $team.result
58:   </td>
59:  #end
60: 
61:   <td valign="top"#if ($event.inProgress) class="inprogress"#end>$event.status</td>
62:   <td valign="top">
63: 
64:    #if ($event.links.size() > 0)
65:     #set ($linkhtml = "")
66:      #foreach ($link in $event.links)
67:        #set ($linkhtml = "${linkhtml} <a href='$link.url' target='_blank'>$link.name</a>&nbsp;")
68:      #end
69: <div id="showlinks${velocityCount}">
70: <a href="javascript:void(0);"
71:      onmouseover="return overlib('${formatter.javascriptSingleQuoteEscape($linkhtml)}', NOCLOSE, WRAP,
72:       REF, 'showlinks${velocityCount}', REFC, 'UL', REFP, 'UR', FGCOLOR, '#FFFFFF', BORDER, 1, BGCOLOR, '#666666')" onmouseout="nd(1000);">
73: <img border="0" src="http://d3scoreboard.prestosports.com/schedulelink.gif" /></a></div>
74: 
75:    #end  ##links
76: 
77:   </td>
78:   <td valign="top">
79:    #if ($event.notes.length() > 0 || $event.neutralSite.length() > 0)
80:     <img border="0" id="show${velocityCount}" src="http://d3scoreboard.prestosports.com/schedulenote.gif" />
81:    #end
82:   </td>
83:  </tr>
84: 
85:    #if ($event.notes.length() > 0 || $event.neutralSite.length() > 0)
86:  <tr>
87:   <td></td>
88:   <td colspan="5">  
89:    <div class="notes" id="note${velocityCount}" style="display: none">
90:    $!event.notes
91:    #if ($event.neutralSite.length() > 0)
92:     at $event.neutralSite
93:    #end
94:    </div>
95: 
96:   </td>
97:   <td colspan="2"></td>
98:  </tr>
99:    #end ## if notes/neutral site
100: 
101:  #end ## if show conference only
102: 
103: 
104: 
105: #end  ## foreach
106: </table>
107: 
108: 
109: <script LANGUAGE="JavaScript">
110: YAHOO.namespace("presto");
111: 
112: function init() {
113: #foreach ($event in $schedule.events)
114:  #if ($event.notes.length() > 0 || $event.neutralSite.length() > 0)
115: YAHOO.presto.note${velocityCount} = new YAHOO.widget.Module("note${velocityCount}", { visible: false });
116: YAHOO.presto.note${velocityCount}.render();
117: YAHOO.presto.show${velocityCount} = new YAHOO.widget.Module("show${velocityCount}", { visible: true});
118: YAHOO.presto.show${velocityCount}.render();
119: YAHOO.util.Event.addListener("show${velocityCount}", "mouseover", YAHOO.presto.note${velocityCount}.show, YAHOO.presto.note${velocityCount}, true);
120: YAHOO.util.Event.addListener("show${velocityCount}", "mouseout", YAHOO.presto.note${velocityCount}.hide, YAHOO.presto.note${velocityCount}, true);
121:  #end
122: #end
123: }
124: 
125: YAHOO.util.Event.addListener(window, "load", init);
126: </script>
127: 
128: #else
129:  $schedule.sport season complete.
130: #end
131: 
132:     #else
133:       #set ($days = ($event.date.time - $now.time))
134:      <div id="countdown">
135:       $schedule.sport season begins in <b>$formatter.formatDateDiff($event.date, $now, "D") days</b>
136:      </div>
137:     #end
138:     
139:     
140:   #else
141:     <!-- First event has no date -->
142:   #end ## if event.date
143: 
144: $sfs
145: 
146: $wiki