Skip to content

Commit

Permalink
NodeGroup: avoid crash
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Feb 4, 2017
1 parent 3b0f5f3 commit cb4c91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engine/NodeGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2540,7 +2540,7 @@ exportKnobLinks(int indentLevel,
throw std::logic_error("exportKnobLinks");
}
QString aliasName;
if ( aliasHolder == groupNode->getEffectInstance().get() ) {
if ( groupNode && aliasHolder == groupNode->getEffectInstance().get() ) {
aliasName = groupName;
} else {
aliasName = groupName + QString::fromUtf8( aliasHolder->getNode()->getScriptName_mt_safe().c_str() );
Expand Down Expand Up @@ -2578,7 +2578,7 @@ exportKnobLinks(int indentLevel,
throw std::logic_error("exportKnobLinks");
}
QString masterName;
if ( masterHolder == groupNode->getEffectInstance().get() ) {
if ( groupNode && masterHolder == groupNode->getEffectInstance().get() ) {
masterName = groupName;
} else {
masterName = groupName + QString::fromUtf8( masterHolder->getNode()->getScriptName_mt_safe().c_str() );
Expand Down

0 comments on commit cb4c91a

Please sign in to comment.