Skip to content

Commit

Permalink
MODE-1947 Corrected potential null pointer exception in Excel sequencer
Browse files Browse the repository at this point in the history
Handle undefined cells in Excel documents
  • Loading branch information
dalbani authored and rhauch committed May 28, 2013
1 parent ba9220c commit 16b0212
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -71,6 +71,11 @@ public static ExcelMetadata instance( InputStream stream ) throws IOException {
for (int cellNum = row.getFirstCellNum(); cellNum < lastCellNum; cellNum++) {
HSSFCell cell = row.getCell(cellNum);

// Undefined cells are returned as null
if (cell == null) {
continue;
}

/*
* Builds a string of body content from all string, numeric,
* and formula values in the body of each worksheet.
Expand Down

0 comments on commit 16b0212

Please sign in to comment.