https://issues.apache.org/bugzilla/show_bug.cgi?id=51504
Bug #: 51504
Summary: NullPointerException in InternalSheet.getColumnWidth()
due to missing defaultcolwidth
Product: POI
Version: 3.8-dev
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
public void testGetColumnWidth()
{
InternalSheet worksheet = InternalSheet.createSheet();
// shall not be NPE
worksheet.getColumnWidth( 0 );
HSSFWorkbook wb = HSSFTestDataSamples
.openSampleWorkbook( "12843-1.xls" );
HSSFSheet sheet = wb.getSheetAt( 7 );
// shall not be NPE
sheet.getColumnWidth( 0 );
}
Second call to getColumnWidth() throws NPE due to missing defaultcolwidth
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]