GORM Playground Link

https://github.com/go-gorm/playground/pull/1

Description

File: scope.go, utils.go (In github.​com/jinzhu/gorm) error - Unchecked type assertion details - (screenshots attached) If the type assertion fails, a nil dereference will occur.In github.​com/jinzhu/gorm.​Scope.​buildSelectQuery(map[string]interface{}, string): A failing type assertion can produce a nil value (CWE-476) Gorm Coverity Scan - Unchecked type assertion in scope.go and utils.go If the type assertion fails, a nil dereference will occur.In github.​com/jinzhu/gorm.​Scope.​buildCondition(map[string]interface{}, bool, string): A failing type assertion can produce a nil value (CWE-476) Gorm Coverity Scan - Unchecked type assertion in scope.go and utils.go

If the type assertion fails, a nil dereference will occur.In github.​com/jinzhu/gorm.​getValueFromFields(reflect.​Value, []string, []interface{}): A failing type assertion can produce a nil value (CWE-476) Gorm Coverity Scan - Unchecked type assertion in scope.go and utils.go

version - github.com/jinzhu/gorm v1.9.12

Comment From: github-actions[bot]

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking

Comment From: raghvendra-dixit

Hi @jinzhu , this is an issue which is an static analysis tool report, thought of sharing here to get insights for the issue and possible discussion to fix this. Unfortunately, in this case i do not have go playground to simulate, as this scan report of the code base

Comment From: github-actions[bot]

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking