I ran into a crash which I traced to a nullptr dereference of a QMenu pointer in case no devices are found, for some reason.
I don't yet understand how the device scan fails but it should not lead to a crash. This patch implements a minimal fix.
stikonas |
KDE Partition Manager |
I ran into a crash which I traced to a nullptr dereference of a QMenu pointer in case no devices are found, for some reason.
I don't yet understand how the device scan fails but it should not lead to a crash. This patch implements a minimal fix.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
By the way, what about void MainWindow::onSelectedDeviceMenuTriggered(bool). It has another call to container. Maybe add nullptr check there too?