aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2015-04-20 18:16:30 +0000
committerDominik Stadler <centic@apache.org>2015-04-20 18:16:30 +0000
commit710b10eb1fd51c98fc92ec5da3d1dad3702a2479 (patch)
tree03d40e33ea009349bf84eb48d2774d0227e7167c /src/scratchpad
parent1201332d4823845191dff36a170e4c66ee4a4099 (diff)
downloadpoi-710b10eb1fd51c98fc92ec5da3d1dad3702a2479.tar.gz
poi-710b10eb1fd51c98fc92ec5da3d1dad3702a2479.zip
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
Diffstat (limited to 'src/scratchpad')
-rw-r--r--src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
index 0c68acef4a..29875d67d7 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
+++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
@@ -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() );