Skip to content

Sparte Scan leads to panic #135

@muzengin

Description

@muzengin

if value == nil || value.(*string) == nil {

If gorm read data from database and map it to domain model, the scan function is called. This leads to follow error:

Panic value: interface conversion: interface {} is string, not *string

could u also handle string before try to handle pointer string

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions