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 614dcc4489
commit 982c21720e
1 changed files with 4 additions and 3 deletions

View File

@ -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