[PATCH] Fix NameFinder.java when addr2line does not exist

Andrew Pinski pinskia@physics.uc.edu
Fri Apr 22 17:39:00 GMT 2005


The problem here is that we really don't take into effect that a couple 
of variables
could be null so get some NPE (NullPointerExceptions).  This patch 
fixes up the
problem and now on darwin, I can get a backtrace without the message 
saying NPE
was thrown when printing out the backtrace.

OK? Bootstrapped and tested on ppc-darwin with no regressions.

Thanks,
Andrew Pinski

ChangeLog:

	* gnu/gcj/runtime/NameFinder.java (close): IN, OUT, and PROC can all 
be null,
	check for that case and don't deference it.

Patch:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: temp.diff.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050422/b446598c/attachment.txt>


More information about the Java-patches mailing list