Jump to content

possible bug in JRAbstractExporter ver.3.7.3


ericlang80

Recommended Posts

Hello everybody, i'm new in jasper, but  trying to fix my appication, i found a possible bug in JRAbstractExporter abstract class, in setPageRange() method.

Look at this condition:

    if (jasperPrint.getPages() != null)
        {
            lastPageIndex = jasperPrint.getPages().size() - 1;
        }

where getPages() never must be null, but is possible that be an empty list , where size is 0 and lastPageIndex becomes -1.

well, i hope that helps to jasper project.

Thanks, Eric.

 

 

 

 

 

.

 

 

Link to comment
Share on other sites

  • Replies 1
  • 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...