[PR #2195] [MERGED] Fix PR nil-dereference bug #16281

Closed
opened 2025-11-02 12:06:39 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2195
Author: @ethantkoenig
Created: 7/22/2017
Status: Merged
Merged: 7/26/2017
Merged by: @lunny

Base: masterHead: fix/issue2190


📝 Commits (2)

  • 8b670ad Fix PR nil-dereference bug
  • 082a7cc Revert to original error format

📊 Changes

2 files changed (+91 additions, -7 deletions)

View changed files

📝 models/issue.go (+26 -7)
📝 models/issue_test.go (+65 -0)

📄 Description

Fixes #2190. Also adds unit tests for previously-broken methods.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2195 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 7/22/2017 **Status:** ✅ Merged **Merged:** 7/26/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix/issue2190` --- ### 📝 Commits (2) - [`8b670ad`](https://github.com/go-gitea/gitea/commit/8b670adf9f9eabbcb3bc1c9d376699dfdd780890) Fix PR nil-dereference bug - [`082a7cc`](https://github.com/go-gitea/gitea/commit/082a7ccaabe17034bb6b0b28c1fbe4f6468b714c) Revert to original error format ### 📊 Changes **2 files changed** (+91 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `models/issue.go` (+26 -7) 📝 `models/issue_test.go` (+65 -0) </details> ### 📄 Description Fixes #2190. Also adds unit tests for previously-broken methods. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:06:39 -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#16281