Skip to content
Snippets Groups Projects
Commit ae9d5a9b authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

nullptr check instead of assertion

parent d79ce5ec
No related branches found
No related tags found
1 merge request!2773Fix crash on opening project with 1D and 2D data (#1042)
Pipeline #176278 passed
......@@ -199,7 +199,9 @@ void AxesPanel::updatePanel()
void AxesPanel::updateUIValues()
{
ASSERT(d2Item());
if (!d2Item())
return;
for (const auto& updater : m_updaters)
updater();
}
......@@ -159,7 +159,9 @@ void AxisPanel::updateItemCoords(DataItem* item)
void AxisPanel::updateUIValues()
{
ASSERT(d1Item());
if (!d1Item())
return;
for (const auto& updater : m_updaters)
updater();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment