Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Panic when create value from nil struct pointer. #4770

Closed
zzjin opened this issue Oct 12, 2021 · 1 comment
Closed

[BUG] Panic when create value from nil struct pointer. #4770

zzjin opened this issue Oct 12, 2021 · 1 comment
Assignees
Labels
type:with reproduction steps with reproduction steps

Comments

@zzjin
Copy link

zzjin commented Oct 12, 2021

GORM Playground Link

go-gorm/playground#389

Description

After update from v1.21.15 to v1.21.16 Cteate() func panic when call on nil struct pointer in our ci cycle.
1.21.15 works fine to return one error.

Changes to schema/schema.go causes this pnic with no check with reflect.Indirect() response.

@ghost
Copy link

ghost commented Oct 12, 2021

@zzjin thanks, already fixed.

@ghost ghost closed this as completed Oct 12, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:with reproduction steps with reproduction steps
Projects
None yet
Development

No branches or pull requests

2 participants