diff --git a/accountdialog.cpp b/accountdialog.cpp index e61f054b7..dc5353865 100644 --- a/accountdialog.cpp +++ b/accountdialog.cpp @@ -217,8 +217,9 @@ ProcmailRCParser::processLocalLock(const QString &s) do { prevLine = line; line = mStream->readLine().trimmed(); - } while ( !mStream->atEnd() && (line[0] == '*' || - prevLine[prevLine.length() - 1] == '\\' )); + } while ( !mStream->atEnd() && + ( line[0] == '*' || + prevLine.length() > 0 && prevLine[prevLine.length() - 1] == '\\' ) ); if( line[0] != '!' && line[0] != '|' && line[0] != '{' ) { // this is a filename, expand it