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:
parent
b0336924a4
commit
b5ad05cdd1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user