Commit 2a238f8
committed
Prevent NPE on partial match of compare URL (part 2) (go-gitea#18490)
Backport go-gitea#18490
Unfortunately go-gitea#18472 only fixed part of the ways a nil pointer can occur in the
compare url. We also need to ensure that the match array has all the matches present.
Fix go-gitea#18471
Related go-gitea#18472
Signed-off-by: Andrew Thornton <[email protected]>1 parent d5027b6 commit 2a238f8
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
948 | 951 | | |
949 | 952 | | |
950 | 953 | | |
| |||
957 | 960 | | |
958 | 961 | | |
959 | 962 | | |
960 | | - | |
| 963 | + | |
961 | 964 | | |
962 | 965 | | |
963 | 966 | | |
| |||
0 commit comments