Commit 52c1cfcf authored by Eugene Ingerman's avatar Eugene Ingerman

Check pointer before using it. Fixing assert when image is open from command line.

parent 300a4bc5
......@@ -397,7 +397,8 @@ void KisLayerBox::updateUI()
KisNodeSP activeNode = m_nodeManager->activeNode();
if (activeNode != m_activeNode) {
m_activeNode->disconnect(this);
if( !m_activeNode.isNull() )
m_activeNode->disconnect(this);
m_activeNode = activeNode;
KisKeyframeChannel *opacityChannel = activeNode->getKeyframeChannel(KisKeyframeChannel::Opacity.id(), false);
......
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