avoid a crash when tree is null
svn path=/trunk/; revision=15008
This commit is contained in:
parent
ab0698d089
commit
10f8560838
|
@ -2121,7 +2121,8 @@ add_content_type(proto_tree *tree, tvbuff_t *tvb, guint32 val_start,
|
|||
So we have to disable that one and become "slow" by pretending that
|
||||
the tree is "visible".
|
||||
*/
|
||||
PTREE_DATA(tree)->visible=1;
|
||||
if (tree)
|
||||
PTREE_DATA(tree)->visible=1;
|
||||
|
||||
*textual_content = NULL;
|
||||
*well_known_content = 0;
|
||||
|
|
Loading…
Reference in New Issue