Bug 15019 - [PATCH]HSSFSheet#shiftRows() throws NullPointerException
Summary: [PATCH]HSSFSheet#shiftRows() throws NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.0-dev
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-03 09:07 UTC by Toshiaki Kamoshida
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
PATCH for HSSFSheet#shiftRows() (601 bytes, patch)
2002-12-03 09:09 UTC, Toshiaki Kamoshida
Details | Diff
Testcase for this problem. (584 bytes, text/plain)
2002-12-13 06:26 UTC, Toshiaki Kamoshida
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toshiaki Kamoshida 2002-12-03 09:07:38 UTC
Hello,

When I try to shift rows by calling HSSFSheet#shiftRows(),that contains BLANK
(the RowRecord is not exist at the row number) row,the method throws 
NullPointerException.

I feel , in such case users expect, not throws any Exceptions, but simply 
remove the target row's record from the sheet.
Comment 1 Toshiaki Kamoshida 2002-12-03 09:09:12 UTC
Created attachment 4017 [details]
PATCH for HSSFSheet#shiftRows()
Comment 2 Toshiaki Kamoshida 2002-12-13 06:26:41 UTC
Created attachment 4157 [details]
Testcase for this problem.
Comment 3 Shawn Laubach 2003-02-09 21:15:28 UTC
Applied patch and moved the other test case for shifts into the test case file 
applied.  Added the copyright at the top and ran through everything.

Put Toshiaki Kamoshida as author in the test case.