diff options
-rw-r--r-- | basegfx/source/tools/unotools.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/basegfx/source/tools/unotools.cxx b/basegfx/source/tools/unotools.cxx index f5b1e273b8f4..2a923e1bdb9a 100644 --- a/basegfx/source/tools/unotools.cxx +++ b/basegfx/source/tools/unotools.cxx @@ -52,7 +52,10 @@ namespace unotools { const sal_Int32 nInnerSequenceCount(pInnerSequence->getLength()); - if(pInnerSequenceFlags->getLength() != nInnerSequenceCount) + if (!nInnerSequenceCount) + throw lang::IllegalArgumentException(); + + if (pInnerSequenceFlags->getLength() != nInnerSequenceCount) throw lang::IllegalArgumentException(); // prepare new polygon |