Author: jheight Date: Sun Aug 27 04:17:22 2006 New Revision: 437368 URL: http://svn.apache.org/viewvc?rev=437368&view=rev Log: Bug 38796: Check for null in PageBreakRecord
Modified: jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/PageBreakRecord.java Modified: jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/PageBreakRecord.java URL: http://svn.apache.org/viewvc/jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/PageBreakRecord.java?rev=437368&r1=437367&r2=437368&view=diff ============================================================================== --- jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/PageBreakRecord.java (original) +++ jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/PageBreakRecord.java Sun Aug 27 04:17:22 2006 @@ -243,10 +243,12 @@ /** * Retrieves the region at the row/column indicated * @param main FIXME: Document this! - * @return FIXME: Document this! + * @return The Break or null if no break exists at the row/col specified. */ public Break getBreak(short main) { + if (BreakMap == null) + return null; Integer rowKey = new Integer(main); return (Break)BreakMap.get(rowKey); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta POI Project: http://jakarta.apache.org/poi/