Bug 27749 - NPE protecting a cloned sheet
Summary: NPE protecting a cloned sheet
Status: RESOLVED DUPLICATE of bug 37058
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.0-FINAL
Hardware: PC other
: P3 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-17 17:16 UTC by Harry
Modified: 2008-05-10 19:52 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harry 2004-03-17 17:16:47 UTC
When I clone a sheet and protect it:

HSSFSheet sheet = workBook.cloneSheet(index);
sheet.setProtect(true);

I get this:

java.lang.NullPointerException
	at org.apache.poi.hssf.usermodel.HSSFSheet.setProtect
(HSSFSheet.java:847)
Comment 1 Josh Micich 2008-05-10 19:52:56 UTC
Fixed in 3.0-alpha2 with bug 37058 (svn r368554)


*** This bug has been marked as a duplicate of bug 37058 ***