Browse Source

Fix NPE in test util.

pull/2/head
Justine Alexandra Roberts Tunney 11 years ago
parent
commit
2351dd1f36
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      sip/addr_test.go

+ 5
- 1
sip/addr_test.go View File

@ -155,5 +155,9 @@ func TestReversed(t *testing.T) {
}
func addrError(t *testing.T, name string, want, got *sip.Addr) {
t.Errorf("%s:\n%#v\n%#v\n!=\n%#v\n%#v", name, want, want.Uri, got, got.Uri)
if want != nil && got != nil {
t.Errorf("%s:\n%#v\n%#v\n!=\n%#v\n%#v", name, want, want.Uri, got, got.Uri)
} else {
t.Errorf("%s:\n%#v\n!=\n%#v", name, want, got)
}
}

Loading…
Cancel
Save