Skip to content

Nil deref #230

@reinkrul

Description

@reinkrul
admin-1  | echo: http: panic serving 172.19.0.1:64708: runtime error: invalid memory address or nil pointer dereference
admin-1  | goroutine 536 [running]:
admin-1  | net/http.(*conn).serve.func1()
admin-1  |      /usr/local/go/src/net/http/server.go:1947 +0xb0
admin-1  | panic({0x45f4c0?, 0x8e3760?})
admin-1  |      /usr/local/go/src/runtime/panic.go:792 +0x124
admin-1  | github.com/nuts-foundation/nuts-admin/identity.Service.Get({0x400025e800?, 0x400025e840?, {0x400025e880?}}, {0x5e8470, 0x400011b590}, {0x40001884ec, 0x4})
admin-1  |      /app/identity/service.go:79 +0x194
admin-1  | github.com/nuts-foundation/nuts-admin/api.Wrapper.GetIdentity({{0x400025e800, 0x400025e840, {0x400025e880}}, {{0x400025e800, 0x400025e840, {0x400025e880}}, 0x400025e840}, {0x400025e880}, {0x0, 0x0, ...}}, ...)
admin-1  |      /app/api/api.go:51 +0xb0
admin-1  | github.com/nuts-foundation/nuts-admin/api.(*ServerInterfaceWrapper).GetIdentity(0x4000197760, {0x5eedc8, 0x400009abe0})
admin-1  |      /app/api/generated.go:118 +0x70
admin-1  | github.com/labstack/echo/v4.(*Echo).add.func1({0x5eedc8, 0x400009abe0})
admin-1  |      /go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:582 +0x48
admin-1  | github.com/labstack/echo/v4/middleware.ProxyWithConfig.func3.1({0x5eedc8, 0x400009abe0})
admin-1  |      /go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/proxy.go:318 +0x3f4
admin-1  | github.com/labstack/echo/v4/middleware.RequestLoggerConfig.ToMiddleware.func1.1({0x5eedc8, 0x400009abe0})
admin-1  |      /go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/request_logger.go:283 +0xe8
admin-1  | github.com/labstack/echo/v4.(*Echo).ServeHTTP(0x4000272008, {0x5e7ae0, 0x400026b0a0}, 0x400042c8c0)
admin-1  |      /go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:669 +0x314
admin-1  | net/http.serverHandler.ServeHTTP({0x4000391170?}, {0x5e7ae0?, 0x400026b0a0?}, 0x6?)
admin-1  |      /usr/local/go/src/net/http/server.go:3301 +0xbc
admin-1  | net/http.(*conn).serve(0x4000429b90, {0x5e8438, 0x40002697a0})
admin-1  |      /usr/local/go/src/net/http/server.go:2102 +0x52c
admin-1  | created by net/http.(*Server).Serve in goroutine 1
admin-1  |      /usr/local/go/src/net/http/server.go:3454 +0x3d8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions