poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51504] New: NullPointerException in InternalSheet.getColumnWidth() due to missing defaultcolwidth
Date Wed, 13 Jul 2011 15:40:03 GMT
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: dev@poi.apache.org
        ReportedBy: vlsergey@gmail.com
    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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message