diff options
-rw-r--r-- | svtools/source/svrtf/parrtf.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx index bcdb67b4600e..a29e571383b9 100644 --- a/svtools/source/svrtf/parrtf.cxx +++ b/svtools/source/svrtf/parrtf.cxx @@ -159,9 +159,11 @@ int SvRTFParser::GetNextToken_() if( 0 <= nTokenValue ) { nUCharOverread = (sal_uInt8)nTokenValue; - //cmc: other ifdef breaks #i3584 - aParserStates.top(). - nUCharOverread = nUCharOverread; + if (!aParserStates.empty()) + { + //cmc: other ifdef breaks #i3584 + aParserStates.top().nUCharOverread = nUCharOverread; + } } aToken.clear(); // #i47831# erase token to prevent the token from being treated as text // read next token |