Error instead of crash on GetRef of nil object

This commit is contained in:
Daniel Smith
2014-10-17 10:47:21 -07:00
parent 34a64a270d
commit 0c58ee98c8
2 changed files with 11 additions and 0 deletions

View File

@@ -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 {