From: Nick Burch Date: Thu, 29 Mar 2007 15:34:25 +0000 (+0000) Subject: RC2 X-Git-Tag: REL_3_0_RC2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ed9dcf84b81f46bde4f96c3eeba40d35c89588db;p=poi.git RC2 git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/tags/REL_3_0_RC2@523748 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/SlideShow.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/SlideShow.java index 400eecdc33..fdecb2bb04 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/SlideShow.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/SlideShow.java @@ -273,8 +273,13 @@ public class SlideShow private Record getCoreRecordForRefID(int refID) { Integer coreRecordId = (Integer) _sheetIdToCoreRecordsLookup.get(new Integer(refID)); - Record r = _mostRecentCoreRecords[coreRecordId.intValue()]; - return r; + if(coreRecordId != null) { + Record r = _mostRecentCoreRecords[coreRecordId.intValue()]; + return r; + } else { + logger.log(POILogger.ERROR, "We tried to look up a reference to a core record, but there was no core ID for reference ID " + refID); + return null; + } } /** @@ -352,23 +357,26 @@ public class SlideShow } else { // Match up the records and the SlideAtomSets notesSets = notesSLWT.getSlideAtomsSets(); - notesRecords = new org.apache.poi.hslf.record.Notes[notesSets.length]; + ArrayList notesRecordsL = new ArrayList(); for(int i=0; i