Updating from v1.1.0 to v1.2.0 may cause "runtime error: invalid memory address or nil pointer dereference"
mgsweet opened this issue · comments
Aaron Yau commented
GORM Playground Link
Description
Updating from v1.1.0 to v1.2.0 may cause panic because of the following line:
Line 49 in 691098d
Get("gorm:db_resolver")
would return nil
if db_resolver
is not set up correctly, which would cause "runtime error: invalid memory address or nil pointer dereference".
Jinzhu commented
Fixed that.