diff --git a/chain/vm/invoker.go b/chain/vm/invoker.go index 56f769da2..eaac395ea 100644 --- a/chain/vm/invoker.go +++ b/chain/vm/invoker.go @@ -130,6 +130,9 @@ func (*Invoker) transform(instance Invokee) (nativeCode, error) { } code := make(nativeCode, len(exports)) for id, m := range exports { + if m == nil { + continue + } meth := reflect.ValueOf(m) code[id] = reflect.MakeFunc(reflect.TypeOf((invokeFunc)(nil)), func(in []reflect.Value) []reflect.Value {