Steps to reproduce: 1. Manually (i.e., not using POI) create an Excel Workbook, making sure it contains a sheet that doesn't have any row breaks 2. Using POI, create a new HSSFWorkbook from the template in step #1 3. Try adding a row break (via sheet.setRowBreak()) to the sheet mentioned in step #1 4. Get a NullPointerException
I tested it against several test files and it works fine with the latest POI 3.0 RC2 jar. If you have a particular xls template that results in NPE, please upload it and reopen this bug. Yegor