diff options
-rw-r--r-- | epan/expert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/expert.c b/epan/expert.c index 414b42320a..21cef79a62 100644 --- a/epan/expert.c +++ b/epan/expert.c @@ -166,7 +166,7 @@ expert_set_info_vformat(packet_info *pinfo, proto_item *pi, int group, int sever proto_tree *tree; proto_item *ti; - if (pinfo == NULL && pi->tree_data) { + if (pinfo == NULL && pi && pi->tree_data) { pinfo = PTREE_DATA(pi)->pinfo; } |