remove duplicate null check of srcStartRow (identified by FindBugs)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716003 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2015-11-24 01:08:34 +00:00
parent 6acd60f74d
commit d6ee7f8221
1 changed files with 2 additions and 3 deletions

View File

@ -2699,9 +2699,8 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet {
for (int index=1; index < srcRows.size(); index++) {
final Row prevRow = srcRows.get(index-1);
final Row curRow = srcRows.get(index);
if (prevRow == null || curRow == null) {
throw new IllegalArgumentException("srcRows may not contain null rows. Found null row at index " +
index + " after Row " + prevRow.getRowNum() + ".");
if (curRow == null) {
throw new IllegalArgumentException("srcRows may not contain null rows. Found null row at index " + index + ".");
//} else if (curRow.getRowNum() != prevRow.getRowNum() + 1) {
// throw new IllegalArgumentException("srcRows must contain continuously increasing row numbers. " +
// "Got srcRows[" + (index-1) + "]=Row " + prevRow.getRowNum() + ", srcRows[" + index + "]=Row " + curRow.getRowNum() + ".");