mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-28 15:50:17 +08:00
wxRadioBox::m_radioButtonCycle is never null -- except when it is, when there are no items at all in the radio box. Handle this case without crashing too by checking for the pointer being valid before using it. Also add a unit test checking that this works correctly. See #22751.
Tests
This directory contains tests for the library and is mostly useful for the
library developers. See the samples subdirectory for the examples that are
more useful to the application developers using the library.
If you do work on the library itself and would like to modify an existing or
add a new test, please see docs/contributing/how-to-write-unit-tests.md for
more information.
This file also contains the instructions for running the tests if you'd just like to do it to confirm that the library works correctly.