Wireshark-dev: Re: [Wireshark-dev] Dissectors and parsing mode
From: Stephen Fisher <[email protected]>
Date: Fri, 7 Nov 2008 17:49:08 -0700
On Sat, Nov 08, 2008 at 12:40:03AM +0000, Chris Davies wrote:

> If I were getting a null tree pointer on the first run through, I'd 
> assume this was just how it was supposed to work and attempt to work 
> around my problems. That I'm getting a non-null pointer both times 
> does raise the possibility that I'm doing something wrong here.

You're probably running into the situation where the color filters are 
enabled.  This causes the tree to be non-null even when a packet isn't 
selected.  Turn off color filters and try again.  Simply put things that 
need to be processed at all times outside of the if(tree).