Error instead of crash on GetRef of nil object
This commit is contained in:
@@ -80,6 +80,11 @@ func TestGetReference(t *testing.T) {
|
||||
ref: nil,
|
||||
shouldErr: true,
|
||||
},
|
||||
"errorNil": {
|
||||
obj: nil,
|
||||
ref: nil,
|
||||
shouldErr: true,
|
||||
},
|
||||
}
|
||||
|
||||
for name, item := range table {
|
||||
|
Reference in New Issue
Block a user