Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9b79a3e

Browse files
fix issue 508 (#512)
2 parents 6821bec + 1779031 commit 9b79a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎reflect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (iter *Iterator) ReadVal(obj interface{}) {
6565
decoder := iter.cfg.getDecoderFromCache(cacheKey)
6666
if decoder == nil {
6767
typ := reflect2.TypeOf(obj)
68-
if typ.Kind() != reflect.Ptr {
68+
if typ==nil||typ.Kind() != reflect.Ptr {
6969
iter.ReportError("ReadVal", "can only unmarshal into pointer")
7070
return
7171
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /