Find a Doctor

An error occurred while processing the template.
The following has evaluated to null or missing:
==> doctor.friendlyUrlPath  [in template "50514338544647#20120#117483" at line 45, column 67]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign friendlyURL = "${doctor.frien...  [in template "50514338544647#20120#117483" at line 45, column 41]
----
1<style> 
2	.bookAppointmentFilterSearch .dubaiHealthDoctorsInner .cardBoxImg { 
3		height: 240px; 
4		background-color: #aeb7be; 
5
6 
7	.bookAppointmentFilterSearch .dubaiHealthDoctorsInner .cardBoxImg img { 
8		width: 100%; 
9		object-fit: contain; 
10
11	.bookAppointmentFilterSearch .bookAppointmentFilterSearchRow{ 
12		padding-bottom: 48px; 
13
14	.cardBoxGroupTwo .cardBoxContent .cardBoxTxt h2{ 
15		display: -webkit-box; 
16		-webkit-line-clamp: 2; 
17		line-clamp: 2; 
18
19	.cardBoxGroupTwo .cardBoxContent { 
20		min-height: unset; 
21
22</style> 
23<#if entries?has_content> 
24	<div class="bookAppointmentFilterSearch"> 
25		<div class="container-fluid containerFluid  dubai-health-search-results"> 
26			<div class="bookAppointmentFilterSearchRow"> 
27				<#list entries as entry> 
28					<#assign doctor = {} /> 
29					<#attempt> 
30						<#assign doctor = restClient.get("/c/doctors/${entry.getClassPK()}") /> 
31					<#recover> 
32						<#assign doctor = {} /> 
33					</#attempt> 
34					<#assign doctorsToSpecialities = {} /> 
35					<#attempt> 
36						<#assign doctorsToSpecialities = 
37							restClient.get( 
38								"/c/doctors/${entry.getClassPK()}/doctorsToSpecialities?fields=specialtyName" 
39							) /> 
40					<#recover> 
41						<#assign doctorsToSpecialities = {} /> 
42					</#attempt> 
43 
44 
45					<#assign friendlyURL = "${doctor.friendlyUrlPath}" /> 
46					<div class="bookAppointmentCol"> 
47						<div class="dubaiHealthDoctors"> 
48							<div class="dubaiHealthDoctorsInner"> 
49								<div class="cardBoxGroupTwo cardBoxGroupTwoX fixWidth"> 
50									<div class="findDoctorCard"> 
51										<#if doctor.isTelemedicine?number gt 0 > 
52											<div class="telehealthCall"> 
53												<div class="wrapperTooltip"> 
54													<a href="javascript:void(0);" class="telehealthCallBtn"> 
55														<img src="/o/dubai-health-theme-css/images/icon/telehealth.png" 
56																 alt="image" loading="lazy" class="img-fluid"> 
57													</a> 
58													<div class="tooltip"> 
59														${languageUtil.get(locale,"doctor-available-for-telemedicine")} 
60													</div> 
61												</div> 
62											</div> 
63											</#if> 
64 
65										<div class="cardBoxImg"> 
66											<a href="/doctor/${friendlyURL}"> 
67												<#if doctor.profilePicture?exists> 
68													<img src="${doctor.profilePicture.link.href}" alt="image" class="img-fluid"> 
69													<#else> 
70														<img src="/documents/d/dubai-health/doctor-placeholder" alt="image" class="img-fluid"> 
71														</#if> 
72													</a> 
73												<div class="cardBoxImgOverlay"> 
74													<a href="/doctor/${friendlyURL}" 
75														 class="btn cardBoxOverlayBtn">${languageUtil.get(locale,"view-details")}</a> 
76												</div> 
77												</div> 
78 
79											<div class="cardBoxContent"> 
80												<div class="cardBoxTxt"> 
81													<span> 
82														<#if doctorsToSpecialities?has_content> 
83															<#list doctorsToSpecialities.items as doctorsToSpeciality> 
84																<#if doctorsToSpeciality.specialtyName?exists> 
85																	${doctorsToSpeciality.specialtyName} 
86																	</#if> 
87																</#list> 
88															</#if> 
89													</span> 
90													<h2> 
91														<a href="/doctor/${friendlyURL}"> 
92															${doctor.name} 
93														</a> 
94													</h2> 
95													<#if doctor.jobTitle?exists && doctor.jobTitle.name?exists> 
96														<p>${doctor.jobTitle.name}</p> 
97														</#if> 
98												</div> 
99											</div> 
100 
101										</div> 
102										<div class="cardBoxScheduleAppointment"> 
103												<#if doctor.doctorAvailability?number gt 0> 
104													<a href="/doctor/${friendlyURL}#book-appointment" class="cardBoxScheduleAppointmentLink"> 
105														<img src="/o/dubai-health-theme-css/images/icon/calender1.png" 
106																 alt="calender1" class="img-fluid"> 
107														<p class="mb-0">${languageUtil.get(locale,"book-an-appointment")} 
108														</p> 
109													</a> 
110													<#else> 
111														<#if !doctor.noOutpatientClinic> 
112															<a href="/doctor/${friendlyURL}#request-appointment" class="cardBoxScheduleAppointmentLink"> 
113																<img src="/o/dubai-health-theme-css/images/icon/in-person-appointment.png" alt="in-person-appointment" class="img-fluid"> 
114																<p class="mb-0"> 
115																	${languageUtil.get(locale,"request-appointment")} 
116																</p> 
117															</a> 
118														</#if> 
119													</#if> 
120 
121												<a href="/doctor/${friendlyURL}" class="viewDetailLink"> 
122													${languageUtil.get(locale,"view-details")} 
123												</a> 
124												</div> 
125 
126										</div> 
127									</div> 
128								</div> 
129							</div> 
130 
131							</#list> 
132					</div> 
133					<@liferay_aui.form useNamespace=false> 
134						<@liferay_ui["search-paginator"] id="startPage&" markupView="lexicon" 
135													namespace=namespace 
136													 searchContainer=searchContainer type="more" /> 
137						</@liferay_aui.form> 
138					</div> 
139			</div> 
140			<#else> 
141				<div class="bookAppointmentFilterSearch"> 
142					<div class="container-fluid containerFluid  dubai-health-search-results"> 
143							<div class="insuranceList searchResultShow"> 
144								<div class="insuranceListInner"> 
145									<div class="insuranceResultFound"> 
146										<img src="/o/dubai-health-theme-css/images/icon/ins-search-icon.png" alt="search-icon" 
147												 class="img-fluid"> 
148										<h4>${languageUtil.get(locale, "no-results-found")}</h4> 
149									<p>${languageUtil.get(locale, "doctor-no-result-found-description")} 
150										<button class="btn-reset-search-results"> 
151            <strong> ${languageUtil.get(locale, "doctor-no-result-found-sub-description")}.</strong> 
152            </button> 
153										</p> 
154									</div> 
155							</div> 
156						</div> 
157					</div> 
158				</div> 
159 
160				</#if>