----------------------------------------
> Date: Sat, 10 Apr 2010 14:35:40 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [iText-questions] Null pointer exception with PdfStamper.close()
>
> Mike Marchywka wrote:
>> I would mention the source code is available and compiling with debug info
>> may get you a quicker
>> ansewr sometimes. With something called "fill" and "properties" there is
>> probably something
>> informative, like keys in a hashtable, that will tell you what you forgot (
>> for example, it used
>> a key "importantInfo" to get a result from a hashtable and assumed it would
>> be non null but
>> you just forgot the code that inserts importantInfo.
>
> Yes, that's correct.
>
> I've looked at the fillOCProperties() method, and there are plenty of
> places where a value is retrieved from a PDF dictionary using some key,
> but in all cases, there's a check "if (value != null)" before "something
> important" happens, and I need a standalone example + PDF that causes
> the problem to find out what goes wrong.
I'm writing mobile phone apps and don't usually have stack of line information.
When I get an NPE like this and have situation you describe it usually turns
out I have
a null table. There may not be too many other options although I guess depending
on the parameters you could be passing a null but this could throw illegal arg
depending
on how used etc. Note sure now if HAshtable.get(null) throws IllegalArg or not.
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
> ------------------------------------------------------------------------------
> Download IntelĀ® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/