mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 13:19:00 -07:00
Add nil guard for binding
This commit is contained in:
@@ -25,6 +25,9 @@ func NewBindings(logger *logger.Logger, structPointersToBind []interface{}, exem
|
||||
}
|
||||
|
||||
for _, exemption := range exemptions {
|
||||
if exemptions == nil {
|
||||
continue
|
||||
}
|
||||
name := runtime.FuncForPC(reflect.ValueOf(exemption).Pointer()).Name()
|
||||
// Yuk yuk yuk! Is there a better way?
|
||||
name = strings.TrimSuffix(name, "-fm")
|
||||
|
||||
Reference in New Issue
Block a user