Edit team API fails with nil pointer dereference #3256

Closed
opened 2025-11-02 05:05:38 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @ngourdon on GitHub (Apr 27, 2019).

  • 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,
Originally created by @ngourdon on GitHub (Apr 27, 2019). - Gitea version (or commit ref): 81059a2 - Git version: 2.21.0 - Operating system: Ubuntu 18.04.1 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] 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, ```
GiteaMirror added the type/bug label 2025-11-02 05:05:38 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3256