Jump to content
Changes to the Jaspersoft community edition download ×

null value in the last row


ktrinad

Recommended Posts

By: abangkisp - abangkisp

null value in the last row

2003-06-16 00:14

Hello,

 

i have a FieldText with Class Type String.

i'm using the print when expression

"new Boolean(Integer.parseInt($F{isheader}) == 0)"

 

it work fine when i compiled with the iReport.

But when i insert it to my application.

It says java.lang.NumberFormatException: null

 

after i trace it. i Found out that in the java application. it generate an extra row that contains only null value.

 

Any one know how to solve this?

 

TIA

AbangkisP

 

 

 

 

By: Giulio Toffoli - gt78

RE: null value in the last row

2003-06-16 01:24

It's a custom datasource?

 

Add null checking to your esxpression...

 

new Boolean($F{isheader} != null && Integer.parseInt($F{isheader}) == 0)

 

This sould be sufficent.

 

Giulio

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...