From e6ffe7b59b9f36c534d3b2d6cc78b05dfe517f67 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 10 Aug 2012 22:52:04 +0000 Subject: [PATCH] Add a missing NULL check pointed out by Jakub. svn path=/trunk/; revision=44437 --- epan/expert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1