From: SourceForge.net <no...@so...> - 2008-02-26 02:18:40
|
Patches item #1901599, was opened at 2008-02-25 19:10 Message generated for change (Comment added) made by mungady You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=315494&aid=1901599&group_id=15494 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Andrew Mickish (mickish) >Assigned to: David Gilbert (mungady) Summary: Easy fix null pointer exception in XYTitleAnnotation.draw() Initial Comment: We need a second check for (info != null) in XYTitleAnnotation.draw() at line 308, just before the second call to "info.getOwner()" in the method. I came across this while writing charts to PDF using the iText Graphics2D object. I passed a null 'chartInfo' argument to the JFreeChart.draw() method, and this led to a null pointer exception. ---------------------------------------------------------------------- >Comment By: David Gilbert (mungady) Date: 2008-02-26 02:18 Message: Logged In: YES user_id=112975 Originator: NO Hi Andrew, Thanks for the patch. The check for info != null can enclose a few additional lines, since the tooltip and URL are not required if no entity is added to the 'info'. I've committed this for inclusion in the 1.0.10 release. Regards, Dave ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=315494&aid=1901599&group_id=15494 |