Skip to content

Edit team API fails with nil pointer dereference #6777

@ngourdon

Description

@ngourdon
  • Gitea version (or commit ref): 81059a2
  • Git version: 2.21.0
  • Operating system: Ubuntu 18.04.1
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Edit team API fails with nil pointer dereference:

runtime error: invalid memory address or nil pointer dereference
	/snap/go/3584/src/runtime/panic.go:82
		panicmem: panic(memoryError)
	/snap/go/3584/src/runtime/signal_unix.go:390
		sigpanic: panicmem()
	~/go/src/code.gitea.io/gitea/routers/api/v1/org/team.go:192
		EditTeam: OrgID: ctx.Org.Organization.ID,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions