diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/models/proto_tree_model.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/models/proto_tree_model.cpp b/ui/qt/models/proto_tree_model.cpp index 8aeca7642b..3ededffd7f 100644 --- a/ui/qt/models/proto_tree_model.cpp +++ b/ui/qt/models/proto_tree_model.cpp @@ -191,7 +191,7 @@ struct find_hfid_ { bool ProtoTreeModel::foreachFindHfid(ProtoNode *node, gpointer find_hfid_ptr) { struct find_hfid_ *find_hfid = (struct find_hfid_ *) find_hfid_ptr; - if (PNODE_FINFO(node->protoNode())->hfinfo->id == find_hfid->hfid) { + if (PNODE_FINFO(node->protoNode()) && PNODE_FINFO(node->protoNode())->hfinfo->id == find_hfid->hfid) { find_hfid->node = node; return true; } |