mirror of https://github.com/apache/poi.git
bug 59733: cells do not need to be created for the XmlValueDisconnectedException to occur
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1749298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
43056cf42c
commit
fd545438b9
|
@ -372,11 +372,9 @@ public final class TestXSSFSheetShiftRows extends BaseTestSheetShiftRows {
|
||||||
@Test
|
@Test
|
||||||
public void bug59733() throws IOException {
|
public void bug59733() throws IOException {
|
||||||
Workbook workbook = new XSSFWorkbook();
|
Workbook workbook = new XSSFWorkbook();
|
||||||
Sheet sheet = workbook.createSheet("mySheet");
|
Sheet sheet = workbook.createSheet();
|
||||||
for (int r=0; r<=4; r++) {
|
for (int r=0; r<=4; r++) {
|
||||||
Row row = sheet.createRow(r);
|
sheet.createRow(r);
|
||||||
row.createCell(r*2+0);
|
|
||||||
row.createCell(r*2+1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shift the 2nd row on top of the 0th row
|
// Shift the 2nd row on top of the 0th row
|
||||||
|
@ -384,6 +382,8 @@ public final class TestXSSFSheetShiftRows extends BaseTestSheetShiftRows {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following error is thrown when shifting the 3rd row on top of the 0th row
|
* The following error is thrown when shifting the 3rd row on top of the 0th row
|
||||||
|
* If the rows are not created, the error does not occur
|
||||||
|
|
||||||
org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
|
org.apache.xmlbeans.impl.values.XmlValueDisconnectedException
|
||||||
at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1258)
|
at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1258)
|
||||||
at org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTRowImpl.getR(Unknown Source)
|
at org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTRowImpl.getR(Unknown Source)
|
||||||
|
|
Loading…
Reference in New Issue