avoid a crash when tree is null

svn path=/trunk/; revision=15008
This commit is contained in:
Luis Ontanon 2005-07-23 02:07:02 +00:00
parent ab0698d089
commit 10f8560838
1 changed files with 2 additions and 1 deletions

View File

@ -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;