Home > Back-end >  Poi export
Poi export

Time:09-26

Poi exported data, if it is a numeric type is empty, will be submitted to the null pointer exception, a null string type is ok, how to solve! Thank you very much!

CodePudding user response:

Try the wrapper class numeric types

CodePudding user response:

Clear type assignment, empty words also should pass a null string

CodePudding user response:

Excel spreadsheet to export is not the problem for is not null, and int and string is not read from the database of the field, and then according to the HSSF writing form, to export it again, this field is empty to query exception?

CodePudding user response:

Should be a book. GetBooknum () is null, if allowed to Booknum is empty, before the assignment to make a judgment, if we do not allow empty, you'll have to check the program and data, to see what is the problem,
  • Related