1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/routers
zeripath 596eebb2b6
Protect against NPEs in notifications list (#10879) (#10883)
* Protect against NPEs in notifications list (#10879)

Unfortunately there appears to be potential race with notifications
being set before the associated issue has been committed.

This PR adds protection in to the notifications list to log any failures
and remove these notifications from the display.

References #10815 - and prevents the panic but does not completely fix
this.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* add log import

* Update models/notification.go

Co-Authored-By: Lauris BH <lauris@nix.lv>

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-03-30 15:23:02 +08:00
..
admin Admin page for managing user e-mail activation (#10557) (#10579) 2020-03-02 17:09:37 -03:00
api/v1 Fix bug on branch API (#10767) (#10775) 2020-03-20 23:31:01 +02:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
org Prevent DeleteUser API abuse (#10125) (#10128) 2020-02-03 19:44:06 +02:00
private Fix push-create SSH bugs (#10145) (#10151) 2020-02-05 15:50:06 +01:00
repo Convert plumbing.ErrReferenceNotFound to git.ErrNotExist in GetRefCommitID (#10676) (#10797) 2020-03-23 15:01:25 +02:00
routes Logout POST action (#10582) (#10585) 2020-03-03 13:54:15 +08:00
user Protect against NPEs in notifications list (#10879) (#10883) 2020-03-30 15:23:02 +08:00
utils Handle push rejection message in Merge & Web Editor (#10373) (#10497) 2020-02-27 15:37:11 +02:00
home.go [BugFix] Hide public repos owned by private orgs (#9609) 2020-01-05 18:48:47 +00:00
init.go Refactor code indexer (#9313) 2019-12-23 20:31:16 +08:00
install.go Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 2019-12-15 09:51:28 +00:00
metrics.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
swagger_json.go Swagger.v1.json template (#3572) 2018-07-28 03:19:01 +03:00