Jump to content
JasperReports Library 7.0 is now available ×

null field in ResultSet


Recommended Posts

By: Mihai Gheorghiu - tanethq

null field in ResultSet

2002-02-19 10:29

How does JR treat nulls in ResultSets?

Thank you all.

 

 

By: Teodor Danciu - teodord

RE: null field in ResultSet

2002-02-20 09:27

 

Hi,

 

There is only one thing users should

know about when working with expressions:

 

If JasperReports encounters a NullPointerException

when evaluating an expression,

it ignores this exception and the entire

expression will evaluate to null.

Any other caught exceptions, are wrapped

in a JRException and throw up the call stack.

 

To avoid displaying the "null" text in the text

fields, there is a flag called "isBlankWhenNull"

in the "textField" element.

 

Null fields in the ResultSet are not

treated differently.

You should consider handling null values

in fields to avoid any problems.

 

Thanks,

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...