You've already forked json-iterator
							
							
				mirror of
				https://github.com/json-iterator/go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	fix issue 508
This commit is contained in:
		| @@ -65,7 +65,7 @@ func (iter *Iterator) ReadVal(obj interface{}) { | ||||
| 	decoder := iter.cfg.getDecoderFromCache(cacheKey) | ||||
| 	if decoder == nil { | ||||
| 		typ := reflect2.TypeOf(obj) | ||||
| 		if typ.Kind() != reflect.Ptr { | ||||
| 		if typ == nil || typ.Kind() != reflect.Ptr { | ||||
| 			iter.ReportError("ReadVal", "can only unmarshal into pointer") | ||||
| 			return | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user