This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug xml/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2006 19:21:30 -0000
- Subject: [Bug xml/29362] NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh)
- References: <bug-29362-8907@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from tromey at gcc dot gnu dot org 2006-10-06 19:21 -------
Created an attachment (id=12391)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12391&action=view)
proposed patch
This patch makes the crash go away.
The bug is that strip() unconditionally uses 'stylesheet', but in
our case this is null.
I have no idea if this patch is correct. Another plausible approach
would be to check stylesheet!=null before using it in strip().
I'd appreciate it if someone could look at this rather quickly. It
breaks Eclipse in FC6.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29362