Skip to content

Commit bd5bcca

Browse files
committed
Fix referenceutil.FamiliarMatch SIGSEGV
Signed-off-by: apostasie <spam_blackhole@farcloser.world>
1 parent e79def4 commit bd5bcca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/referenceutil/referenceutil.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ func (ir *ImageReference) FamiliarName() string {
6565
}
6666

6767
func (ir *ImageReference) FamiliarMatch(pattern string) (bool, error) {
68-
return reference.FamiliarMatch(pattern, ir.nn)
68+
if ir.nn != nil {
69+
return reference.FamiliarMatch(pattern, ir.nn)
70+
}
71+
return false, nil
6972
}
7073

7174
func (ir *ImageReference) String() string {

0 commit comments

Comments
 (0)