Fix possible ArrayIndexOutOfBoundsException seen with some word documents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1674954 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ca8e3c465e
commit
58145060c2
@ -850,7 +850,7 @@ public abstract class AbstractWordConverter
|
||||
String[] values = cr.getDropDownListValues();
|
||||
Integer defIndex = cr.getDropDownListDefaultItemIndex();
|
||||
|
||||
if ( values != null )
|
||||
if ( values != null && values.length > 0 )
|
||||
{
|
||||
processDropDownList( currentBlock, cr, values,
|
||||
defIndex == null ? -1 : defIndex.intValue() );
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user