Bug 38266 - NPE when adding a row break
Summary: NPE when adding a row break
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.5-FINAL
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-13 21:19 UTC by Alex Savitsky
Modified: 2007-04-16 04:02 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Savitsky 2006-01-13 21:19:38 UTC
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
Comment 1 Yegor Kozlov 2007-04-16 04:02:25 UTC
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