Home > Back-end >  What do you want to be a paging query, but a page error, do not know why
What do you want to be a paging query, but a page error, do not know why

Time:09-19


CodePudding user response:

You can query method is correct, the value to print it out first

CodePudding user response:

Null pointer exception, in point of its properties in an empty object, a good check and remind the wrong line

CodePudding user response:

Try to transform 35 4 rows into this:
Int currentPage=(null==pager? 0: pager. GetCurrentPage ());
Int lastPage=(null==pager? 0: parer. GetTotalPages ());

CodePudding user response:

Null pointer exception, to see if the line of code where the error is not empty,
Either by value, or judgment is empty to default value,
  • Related