diff --git a/token-registry/githubify.go b/token-registry/githubify.go index 33d3e7e50..7bedf6a3d 100644 --- a/token-registry/githubify.go +++ b/token-registry/githubify.go @@ -26,6 +26,9 @@ func localImageToGitHub(local string) string { // isLocalImage returns true if an image URI is meant for a local file in // the "token-registry/img" directory. func isLocalImage(maybeLocal *string) bool { + if maybeLocal == nil { + return false + } return strings.HasPrefix(*maybeLocal, "./img") }