aboutsummaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-05-25 12:49:59 +0100
committerGitHub <noreply@github.com>2022-05-25 19:49:59 +0800
commitccc11c1e77d8011cec1efdadb18d8c831d62bc75 (patch)
treeb1f6e91bd76b4c43e23a273b5e71820333c947f5 /custom
parent336e1ac7797322884137fa565943fb79168d58d1 (diff)
downloadgitea-ccc11c1e77d8011cec1efdadb18d8c831d62bc75.tar.gz
gitea-ccc11c1e77d8011cec1efdadb18d8c831d62bc75.zip
Prevent NPE when cache service is disabled (#19703) (#19783)
Backport #19703 The cache service can be disabled - at which point ctx.Cache will be nil and the use of it will cause an NPE. The main part of this PR is that the cache is used for restricting resending of activation mails and without this we cache we cannot restrict this. Whilst this code could be re-considered to use the db and probably should be, I think we can simply disable this code in the case that the cache is disabled. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'custom')
0 files changed, 0 insertions, 0 deletions