diff options
-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] == '^' ) |