Commit fb31ea6
committed
Refactor the
createHidReportTab method in the ControllerHidReportTabsManager class to introduce a temporary variable reportDescriptorTemp. This variable checks for a valid report descriptor before proceeding, preventing potential null pointer dereference issues. If the report descriptor is not available, the function returns early, enhancing overall code safety.1 parent fd1ecd9 commit fb31ea6
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
0 commit comments