Commit 23215b4
authored
Add nil checks for name and file in sortDoc
`name` and `file` don't appear to be guaranteed non-nil; because of this, if there are cases where the key is present on one element but not the other, the equality check will fall through to the less-than check and this results in a crash comparing `string` against `nil`.
Resolves: #31111 parent fa2c778 commit 23215b4
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments