diff --git a/src/gui/network/Network.cpp b/src/gui/network/Network.cpp index 5ac6bd0..2809b12 100644 --- a/src/gui/network/Network.cpp +++ b/src/gui/network/Network.cpp @@ -224,6 +224,7 @@ void Network::keyPressEvent(QKeyEvent *event) void Network::highlightEdge(QGraphicsItem* edge, bool state) { + if(!edge) return; if(state) { static_cast(edge)->setColor(QColor("red"));