[prev in list] [next in list] [prev in thread] [next in thread]
List: poi-dev
Subject: svn commit: r437368 -
From: jheight () apache ! org
Date: 2006-08-27 11:17:23
Message-ID: 20060827111724.3BD321A981A () eris ! apache ! org
[Download RAW message or body]
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: poi-dev-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic