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:
Dominik Stadler 2015-04-20 18:16:30 +00:00
parent ca8e3c465e
commit 58145060c2
2 changed files with 1 additions and 1 deletions

View File

@ -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() );