Hi,
 I have following code
    CellStyle borderDataStyle = workBook.createCellStyle();
    borderDataStyle.setBorderRight(CellStyle.BORDER_DOUBLE);

I get Null pointer exception:
java.lang.NullPointerException
    at
org.apache.poi.xssf.usermodel.XSSFCellStyle.getBorderId(XSSFCellStyle.java:371)
    at
org.apache.poi.xssf.usermodel.XSSFCellStyle.getCellBorder(XSSFCellStyle.java:362)
    at
org.apache.poi.xssf.usermodel.XSSFCellStyle.setBorderRightEnum(XSSFCellStyle.java:272)
    at
org.apache.poi.xssf.usermodel.XSSFCellStyle.setBorderRight(XSSFCellStyle.java:268)

Am I missing something?

Rajiv Poddar

Reply via email to