Commit 915a8b2
[BUGFIX] Avoid method calls on null with use of null safe operators
`FrontendUtility::getCurrentPageIdentifier()` and
`FrontendUtility::getSysLanguageUid()` received a guard clause a while ago
to prevent calling `getAttribute()` on a null request.
While this solves issues with a nullable request, there are still
potential issues with calling a method on a null return value of
`getAttribute()`
The use of null-safe operators resolve this issue and make the guard
clauses superfluous.
Fixes: #13581 parent af4c06d commit 915a8b2
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 40 | + | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 48 | + | |
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
| |||
0 commit comments