You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Brian Modra <bm...@pcorp.com.au> on 2003/07/10 03:32:58 UTC

NullPointer in BridgeContext

In the middle of BridgeContext.dispose() it sometimes gets a
NullPointerException due to the document variable being null. I put:

if (document == null)
  return;

just before EventTarget evtTarget = (EventTarget)document; on line 888
of my copy of batik 1.5b5  org.apache.batik.bridge.BridgeContext

and that solved the problem


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Re: NullPointer in BridgeContext

Posted by Brian Modra <bm...@pcorp.com.au>.
Thanks, and I'll give you a test program one of these days which exposes
that ConcurrentModificationException which I poseted about earlier, and
is fixed by using my HashMap rather than Sun's

We use Linux and Windows NT, and in both cases J2SDK 1.4.1. Develop on
Linux, test on both.

On Thu, 2003-07-10 at 11:36, Thomas DeWeese wrote:
> Brian Modra wrote:
> 
> >In the middle of BridgeContext.dispose() it sometimes gets a
> >NullPointerException due to the document variable being null. I put:
> >
> >if (document == null)
> >  return;
> >
> >just before EventTarget evtTarget = (EventTarget)document; on line 888
> >of my copy of batik 1.5b5  org.apache.batik.bridge.BridgeContext
> >
> >and that solved the problem
> >
>     This along with a number of other potential issues is fixed in CVS 
> (as of tonight).
>     I'm hoping the new code will aleviate quite a number of your problems.
>     I'm also curious, what platform are you running on?
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-dev-help@xml.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Re: NullPointer in BridgeContext

Posted by Thomas DeWeese <Th...@Kodak.com>.
Brian Modra wrote:

>In the middle of BridgeContext.dispose() it sometimes gets a
>NullPointerException due to the document variable being null. I put:
>
>if (document == null)
>  return;
>
>just before EventTarget evtTarget = (EventTarget)document; on line 888
>of my copy of batik 1.5b5  org.apache.batik.bridge.BridgeContext
>
>and that solved the problem
>
    This along with a number of other potential issues is fixed in CVS 
(as of tonight).
    I'm hoping the new code will aleviate quite a number of your problems.
    I'm also curious, what platform are you running on?




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org