Bug 38796: Check for null in PageBreakRecord

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@437368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason Height 2006-08-27 11:17:22 +00:00
parent b0336924a4
commit b5ad05cdd1
1 changed files with 3 additions and 1 deletions

View File

@ -243,10 +243,12 @@ public class PageBreakRecord extends Record {
/**
* 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);
}