This seems to be a corrupted document and shows up in regression tests and should at least be reported with some more information git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1878870 13f79535-47bb-0310-9956-ffa450edef68tags/before_ooxml_3rd_edition
@@ -513,6 +513,10 @@ final class LinkTable { | |||
if (thisWbIndex < 0) { | |||
throw new RuntimeException("Could not find 'internal references' EXTERNALBOOK"); | |||
} | |||
if (_externSheetRecord == null) { | |||
throw new RuntimeException("Did not have an external sheet record, having blocks: " + | |||
_externalBookBlocks.length); | |||
} | |||
//Trying to find reference to this sheet | |||
int i = _externSheetRecord.getRefIxForSheet(thisWbIndex, firstSheetIndex, lastSheetIndex); |