[PR #5587] [MERGED] fix nil pointer when adding a due date #17856

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5587
Author: @adelowo
Created: 12/23/2018
Status: Merged
Merged: 12/27/2018
Merged by: @jonasfranz

Base: masterHead: fix_nil_pointer


📝 Commits (3)

  • 869298b fix nil pointer
  • 6eb8910 remove nil check and just call loadRepo regardless
  • c5564dc Merge branch 'master' into fix_nil_pointer

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 models/issue_comment.go (+4 -0)

📄 Description

I was trying to pull #5568 to test it locally. But on trying to add a due date,
I kept on getting "The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'."
Looked at my terminal and it was a panic.

Commit I am running locally : a06ae0bdc7

Log --> https://gist.github.com/adelowo/d74a006e9d77d6be6fa41a50a5e09008


🔄 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/5587 **Author:** [@adelowo](https://github.com/adelowo) **Created:** 12/23/2018 **Status:** ✅ Merged **Merged:** 12/27/2018 **Merged by:** [@jonasfranz](https://github.com/jonasfranz) **Base:** `master` ← **Head:** `fix_nil_pointer` --- ### 📝 Commits (3) - [`869298b`](https://github.com/go-gitea/gitea/commit/869298b106f9976e328bacab9a6fb76d14a9fb05) fix nil pointer - [`6eb8910`](https://github.com/go-gitea/gitea/commit/6eb8910b4a01829502b3fe4dfa061c9c9d33c23c) remove nil check and just call loadRepo regardless - [`c5564dc`](https://github.com/go-gitea/gitea/commit/c5564dc23e15b4fcc53e98c65da416cb202c12ec) Merge branch 'master' into fix_nil_pointer ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `models/issue_comment.go` (+4 -0) </details> ### 📄 Description I was trying to pull #5568 to test it locally. But on trying to add a ___due date___, I kept on getting "The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'." Looked at my terminal and it was a panic. Commit I am running locally : a06ae0bdc74405bcf769f3f9fe28296b8e7cdda4 Log --> https://gist.github.com/adelowo/d74a006e9d77d6be6fa41a50a5e09008 --- <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 16:16: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#17856