Forum Discussion

raptop's avatar
raptop
New Contributor
8 years ago
Solved

POI getCell() with missing cell policy returning null pointer exception

Hello,

I am trying to create a groovy script to read from an excel sheet using Apache poi.

To handle null pointer exceptions when calling getCell(), i am calling it with the MissingCellPolicy CREATE_NULL_AS_BLANK, however, it is still triggering a null pointer exception.

 

I have attached a screenshot of my code. Any assistance to help resolve this issue would be appreciated.