There was a problem with a Velocity script
Page/httpd/prestosports/site-public/WEB-INF/themes/generic/related-links-template
ErrorError invoking method 'get(java.lang.Integer)' in java.util.ArrayList at /httpd/prestosports/site-public/WEB-INF/themes/generic/related-links-template[line 54, column 66]
Page source:
1: #macro (printLinkAriaLabelRelatedLinks $event $label)
2:     #if (!$event)
3:         #set ($ariaLabel = $label)
4:     #else
5:         #set ($ariaLabel = "${event.sport} event: ${formatter.formatDate($event.date, 'MMMM d hh:mm a:')}")
6:         #if ($event.neutralSite.length() > 0 || $event.home)
7:                 #set ($vsOrAt = "vs.")
8:         #else
9:                 #set ($vsOrAt = "at")
10:         #end
11:         #if ($event.teams.size() > 1)
12:                 #set ($ariaLabel = "${ariaLabel} ${event.teams.get(0).name} ${vsOrAt} ${event.teams.get(1).name}:")
13:         #elseif ($event.teams.size() == 1)
14:                 #set ($ariaLabel = "${ariaLabel} ${event.teams.get(0).name}:")
15:         #end
16:         #if ($event.neutralSite.length() > 0)
17:                 #set ($ariaLabel = "${ariaLabel} @ ${event.neutralSite}:")
18:         #end
19:         #set ($ariaLabel = "${ariaLabel} ${label}")
20:     #end
21:     aria-label="$ariaLabel"
22: #end ##printLinkAriaLabel
23: 
24: 
25: ## RELATED LINKING
26: #if (!($request.getAttribute("disable_related_links").length() > 0))
27: #if($request.getAttribute("relatedLinksContentPage"))
28:         #set ($contentPage = $request.getAttribute("relatedLinksContentPage"))
29:     #else
30:         #set ($contentPage = $page)
31:     #end
32:     #set ($relatedPages = $contentPage.relatedInSchedule)
33:         #if ($relatedPages.size() > 0)
34:                 ##disable related links from showing again
35:                 $request.setAttribute("disable_related_links", "y")
36: 
37:                 #set ($printedLinks = {})
38:                 #set ($eventLinks = [])
39:                 #set ($relatedEvents = $contentPage.schedule.getEventsWithLink($contentPage.url))
40:                 #if (!$relatedEvents.isEmpty())
41:                         #set ($relatedEvent = $relatedEvents[0])
42:                         #if (!$relatedEvent.links.isEmpty())
43:                                 #set ($eventLinks = $relatedEvent.links)
44:                         #end
45:                 #end
46:   
47:                 <div class="page-related-links clearfix">
48:                         #foreach ($related in $relatedPages)
49:                                 #set ($linkText = $related.mapLabel)
50:                                 #set ($linkUrl = $related.url)
51:                                 #set ($linkMapType = $related.mapType)
52:                                 #set ($linkFound = false)
53:                                 #if (!$relatedEvents.isEmpty())
54:                                         #set ($link = $eventLinks[0])
55:                                         #foreach ($l in $eventLinks)
56:                                         #if ($related.url == $l.url)
57:                                                 #set ($link = $l)
58:                                                 #set ($linkFound = true)
59:                                         #end
60:                                         #end
61:                                 #end
62:                                 #if ($linkFound == true)
63:                                         #set ($linkText = $link.name)
64:                                         #set ($linkUrl = $link.url)
65:                                         #set ($linkMapType = $link.mapType)
66:                                 #end
67:                                 #set ($linkTypeCounter = 1)
68:                                 #set ($linkTypeLabel = $linkText)
69:                                 #if ($printedLinks.containsKey("${$linkText}"))
70:                                         #set ($linkTypeCounter = $printedLinks.get("${linkText}") + 1)
71:                                         #set ($linkTypeLabel = "$linkText${linkTypeCounter}")
72:                                 #end
73:                                 #set ($ignore = $printedLinks.put($linkText, $linkTypeCounter))
74: 
75:                                  #if ($velocityCount > 1) | #end
76:                                     #if ($related.id == $contentPage.id)
77:                                         <strong>${linkText}</strong>
78:                                     #else
79:                                         <a href="$linkUrl" #printLinkAriaLabelRelatedLinks($relatedEvent, $linkTypeLabel) #if ($website.isExternalLink($linkUrl)) target="_blank" #end>${linkText}</a>            
80:                                     #end
81:                                 #end
82:                 </div> 
83:         #end
84: #end ## disable
85: 

Ventura vs. Palomar
@ Orange Coast College
10/23/2021 at 03:00 PM

Ventura
15
Palomar
2
SCORING 1 2 3 4 FINAL
Ventura (,) 15 0 0 0 15
Palomar (,) 2 0 0 0 2
SCORING SUMMARY
-- 1st -- Ventura Palomar
Ventura 00:00 Team (unassisted) 1 0
Ventura 00:00 Team (unassisted) 2 0
Ventura 00:00 Team (unassisted) 3 0
Ventura 00:00 Team (unassisted) 4 0
Ventura 00:00 Team (unassisted) 5 0
Ventura 00:00 Team (unassisted) 6 0
Ventura 00:00 Team (unassisted) 7 0
Ventura 00:00 Team (unassisted) 8 0
Ventura 00:00 Team (unassisted) 9 0
Ventura 00:00 Team (unassisted) 10 0
Ventura 00:00 Team (unassisted) 11 0
Ventura 00:00 Team (unassisted) 12 0
Ventura 00:00 Team (unassisted) 13 0
Ventura 00:00 Team (unassisted) 14 0
Ventura 00:00 Team (unassisted) 15 0
Palomar 00:00 Craig Anderson (Kieran Reilly ) 15 1
Palomar 00:00 Kieran Reilly (Tino Mirizzi ) 15 2
-- 2nd -- Ventura Palomar
(no scoring)
-- 3rd -- Ventura Palomar
(no scoring)
-- 4th -- Ventura Palomar
(no scoring)

Ventura

# PLAYER POS G A SH STL TO ED BLK
TM Team 15 0 0 0 0 0 0
Totals 15 30 0 0 0 0 0
# GOALIES GA Qtrs SV SH

Palomar

# PLAYER POS G A SH STL TO ED BLK
3 Eric Hiatt * 0 0 2 0 3 0 0
4 Jeremy Lovgren * 0 0 0 2 0 1 0
5 Craig Anderson * 1 0 7 3 2 1 1
6 Gabe Oceguera * 0 0 2 0 0 1 0
8 Cristos Birbilis 0 0 0 0 0 0 1
9 Kieran Reilly * 1 1 3 1 1 1 0
10 Parker Brice 0 0 6 0 0 0 0
11 Tino Mirizzi * 0 1 5 2 0 3 1
21 David Oceguera * 0 0 0 1 0 0 0
TM Team 0 0 0 0 0 0 0
Totals 2 2 25 9 6 7 3
# GOALIES GA Qtrs SV SH
21 David Oceguera (L, 0-0) 15 4.0 9 24
SHOTS 1 2 3 4 TOTAL
Ventura 0 0 0 0 0
Palomar 0 0 0 0 0
SAVES 1 2 3 4 TOTAL
Ventura 0 0 0 0 0
Palomar 0 0 0 0 9
EXCLUSION SUMMARY
-- 1st --
Ventura 00:00 Team Ejection
Ventura 00:00 Team Ejection
Ventura 00:00 Team Ejection
Ventura 00:00 Team Ejection
Ventura 00:00 Team Ejection
Ventura 00:00 Team Ejection
Ventura 00:00 Team Ejection
Palomar 00:00 Eric Hiatt Ejection
Palomar 00:00 Craig Anderson Ejection
Palomar 00:00 Gabe Oceguera Ejection
Palomar 00:00 Tino Mirizzi Ejection
Palomar 00:00 Tino Mirizzi Ejection
-- 2nd --
(no penalties)
-- 3rd --
(no penalties)
-- 4th --
(no penalties)
OTHER INFORMATION
Game Length: 1:00
Attendance: 0
Officials and game personnel: Cara Heise
Starter *