mirror of https://github.com/apache/poi.git
HWPF: fix NPE when reading paragraph properties
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1305810 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a307270bf
commit
27ece8b048
|
@ -232,7 +232,7 @@ public class AbstractWordUtils
|
|||
final ListLevel listLevel = listTables.getLevel( listId,
|
||||
paragraph.getIlvl() );
|
||||
|
||||
if ( listLevel.getNumberText() == null )
|
||||
if ( listLevel==null || listLevel.getNumberText() == null )
|
||||
return EMPTY;
|
||||
|
||||
StringBuffer bulletBuffer = new StringBuffer();
|
||||
|
|
|
@ -110,7 +110,7 @@ public class Paragraph extends Range implements Cloneable {
|
|||
final ListLevel listLevel = listTables.getLevel(
|
||||
listFormatOverride.getLsid(), properties.getIlvl() );
|
||||
|
||||
if ( listLevel.getGrpprlPapx() != null )
|
||||
if ( listLevel!=null && listLevel.getGrpprlPapx() != null )
|
||||
{
|
||||
properties = ParagraphSprmUncompressor.uncompressPAP(
|
||||
properties, listLevel.getGrpprlPapx(), 0 );
|
||||
|
|
Loading…
Reference in New Issue