diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-02-11 00:32:32 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-12 01:01:35 +0100 |
commit | 70b30060029c57780d92b652696514d6d4b5739c (patch) | |
tree | d5a16638cefab8d8e751a6181b7f8c53e5a38a0f | |
parent | 3ec8d33e46046b13abad2daf850e23f896ad05bc (diff) |
fix crash when importing unsupported macro content, related fdo#59374
Change-Id: I960c8174454074fd9ddb27fb17244d782c4cb24c
-rw-r--r-- | basic/source/comp/token.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/basic/source/comp/token.cxx b/basic/source/comp/token.cxx index bc09744b7353..3d5e048ddcee 100644 --- a/basic/source/comp/token.cxx +++ b/basic/source/comp/token.cxx @@ -365,6 +365,12 @@ SbiToken SbiTokenizer::Next() { return eCurTok = FIXSTRING; } + else if( aSym.isEmpty() ) + { + //something went wrong + bEof = bEos = true; + return eCurTok = EOLN; + } // Special cases of characters that are between "Z" and "a". ICompare() // evaluates the position of these characters in different ways. else if( aSym[0] == '^' ) |