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:
Andrew C. Oliver 2002-11-28 19:03:22 +00:00
parent 0930d66666
commit 6d084e9831

View File

@ -431,9 +431,10 @@ public class Sheet implements Model
} }
public int getNumMergedRegions() 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 * This is basically a kludge to deal with the now obsolete Label records. If