Skip to content

Commit a0b25e8

Browse files
committed
Fix nullptr field access from dtor
1 parent 261bcc4 commit a0b25e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/robots/common/twoDModel/src/engine/view/twoDModelWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ QList<AbstractItem *> TwoDModelWidget::selectedColorItems() const
558558

559559
void TwoDModelWidget::onSelectionChange()
560560
{
561-
if (mScene->oneRobot()) {
561+
if (!mScene || mScene->oneRobot()) {
562562
return;
563563
}
564564

0 commit comments

Comments
 (0)