Do not panic, but return nil instead

pull/150/head
obscuren 11 years ago
parent 15e0093e13
commit 6c91ffcfbe
  1. 2
      ethutil/value.go

@ -176,7 +176,7 @@ func (val *Value) Get(idx int) *Value {
}
if idx < 0 {
panic("negative idx for Value Get")
return NewValue(nil)
}
return NewValue(d[idx])

Loading…
Cancel
Save