Skip to content

Commit

Permalink
Check NULL pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Nov 27, 2016
1 parent be0978f commit 14a1a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Component/Component.cpp
Expand Up @@ -1550,7 +1550,7 @@ void Component::setOriginAndExtents()
*/
void Component::updateConnections()
{
if (mpGraphicsView->getViewType() == StringHandler::Icon) {
if ((!mpGraphicsView) || mpGraphicsView->getViewType() == StringHandler::Icon) {
return;
}
foreach (LineAnnotation *pConnectionLineAnnotation, mpGraphicsView->getConnectionsList()) {
Expand Down

0 comments on commit 14a1a1e

Please sign in to comment.