Commit 58398d96 authored by Halla Rempt's avatar Halla Rempt

Check pointer before dereferencing

parent 3db05615
......@@ -169,7 +169,9 @@ void CompositionDockerDock::saveClicked()
void CompositionDockerDock::updateModel()
{
m_model->setCompositions(m_canvas->viewManager()->image()->compositions());
if (m_model && m_canvas && m_canvas->viewManager() && m_canvas->viewManager()->image()) {
m_model->setCompositions(m_canvas->viewManager()->image()->compositions());
}
}
void CompositionDockerDock::exportClicked()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment