Skip to content

Commit

Permalink
Merge pull request #3 from SurfingNinjas/master
Browse files Browse the repository at this point in the history
fix panic from newGoValue when the notification value is nil
  • Loading branch information
jonseymour committed Jan 21, 2016
2 parents 86e99ed + 219da26 commit e77291c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion value.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ func (v value) String() string {
}

func newGoValue(cRef *C.Value) *value {
return &value{cRef}
if cRef != nil {
return &value{cRef}
}
return nil
}

func (v *value) notify(api *api, nt *notification) {
Expand Down

0 comments on commit e77291c

Please sign in to comment.