-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix JS NPE when viewing specific range of PR commits #27912
Conversation
This is the easiest fix. While other solutions might be possible, they will not be as trivial.
NPE surely isn't the right term? JavaScript does not have pointers 😆 |
Technically, JS calls it |
Update: Okay, I just found another bug in the same functionality: |
@sebastian-sauer do you have any idea perhaps what might be causing |
I'll try to have a look into that. |
Looks like the reference to BeforeCommitID is wrong in the tmpl https://github.com/go-gitea/gitea/blob/main/templates/repo/diff/box.tmpl#L56 When only one commit is shown this should use AfterCommitID PR: #27916 |
This should be the easiest fix. While other solutions might be possible that exterminate the root cause, they will not be as trivial.
* upstream/main: Fix edit topic UI (go-gitea#27925) Unify two factor check (go-gitea#27915) Revert go-gitea#27870 (go-gitea#27917) Fix JS NPE when viewing specific range of PR commits (go-gitea#27912) Install poetry dependencies with --no-root (go-gitea#27919) Show correct commit sha when viewing single commit diff (go-gitea#27916) Fix 500 when deleting a dismissed review (go-gitea#27903) Remove action runners on user deletion (go-gitea#27902) Remove SSH workaround (go-gitea#27893) Remove "tabindex" from some form buttons (go-gitea#27892) Refactor the function RemoveOrgUser (go-gitea#27582) Fix DownloadFunc when migrating releases (go-gitea#27887)
This should be the easiest fix. While other solutions might be possible that exterminate the root cause, they will not be as trivial.
This should be the easiest fix.
While other solutions might be possible that exterminate the root cause, they will not be as trivial.