diff --git a/backend/server/resource.go b/backend/server/resource.go index 523e65f..67a7a04 100644 --- a/backend/server/resource.go +++ b/backend/server/resource.go @@ -19,7 +19,7 @@ func (srv *DfServer) RegisterWorldPage(path string, template string, accessor fu } data := accessor(mux.Vars(r)) - if reflect.ValueOf(data).IsNil() { + if data == nil || (reflect.ValueOf(data).Kind() == reflect.Ptr && reflect.ValueOf(data).IsNil()) { srv.notFound(w) return }