mirror of https://github.com/apache/poi.git
Patch from Jens Gerhard PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
614dcc4489
commit
982c21720e
|
@ -432,9 +432,10 @@ public class Sheet implements Model
|
|||
|
||||
public int getNumMergedRegions()
|
||||
{
|
||||
return merged.getNumAreas();
|
||||
return merged!=null ? merged.getNumAreas() : 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This is basically a kludge to deal with the now obsolete Label records. If
|
||||
* you have to read in a sheet that contains Label records, be aware that the rest
|
||||
|
|
Loading…
Reference in New Issue