[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[birt-report-engine-dev] Catch NullPointerException
- From: JRS_1986 <Jan.Seyler@xxxxxxxxx>
- Date: Mon, 8 Feb 2010 10:16:36 -0800 (PST)
- Delivered-to: email@example.com
I'm totally new in this forum so I hope, you can help me. We just updated
BIRT in our company and now we have the following problem:
If a user is entering some parameters to our reporting and there is no data
for that in the database, we get a NullPointerException. Now I tried to
catch this with a "catch(java.lang.NullPointerException)" and give a
customized error instead. Something like:
System.out.println("For this parameters there is no data. Retry please.");
We tried it before and after rendering and it ran through but unfortunately
it didn't work.
Does anybody now how to catch this exception in general and print a
customized message instead?
Thank you very much,
View this message in context: http://old.nabble.com/Catch-NullPointerException-tp27501275p27501275.html
Sent from the Eclipse BIRT - Report Engine - Dev mailing list archive at Nabble.com.