Skip to content

Commit f9184ca

Browse files
committedFeb 26, 2025
Prevent panic when HREF string is empty
1 parent f715407 commit f9184ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎pkg/manifest/href.go

+3
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,8 @@ func (h HREF) String() string {
104104
if h.IsTemplated() {
105105
return h.template
106106
}
107+
if h.href == nil {
108+
return ""
109+
}
107110
return h.href.String()
108111
}

0 commit comments

Comments
 (0)
Please sign in to comment.