Files
flipper/desktop/plugins/public/ui-debugger
Andrey Goncharov 5b0ae2a4f8 Fix NPE when activeChildIdx points to the non-existent entry
Summary:
Based on the stack trace in T145744183, `activeChildIdx` could point to a non-existent array element.
Previously, we used to:
1) Find the index of the activeChild in the non-filtered array of children
2) Filter the array

As a result, it could lead to some of the elements in the child array to be filtered and shifting activeChildIdx, making it invalid.

Now, we search activeChild in the already filtered array.

Reviewed By: LukeDefeo

Differential Revision: D44575170

fbshipit-source-id: 2cb9a0b24badc8509a859011694f77b048d93316
2023-03-31 07:21:28 -07:00
..
2023-03-17 10:23:54 -07:00
2023-02-17 02:45:05 -08:00
2022-11-21 05:30:18 -08:00
2023-03-22 11:53:54 -07:00
2023-03-17 10:23:54 -07:00
2023-03-22 11:53:54 -07:00
2023-03-16 07:35:44 -07:00