diff options
author | Andras Timar <andras.timar@collabora.com> | 2014-01-16 16:48:41 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-01-17 06:09:55 +0000 |
commit | 99159a618fd1ea90a2bc8a72621c88a4cf26e6f5 (patch) | |
tree | 487acb6ddcb0ef7e87c43196dacfc0bb1f708ff1 | |
parent | 0853bbc3806e3564959d625f0b560f212c4f25b5 (diff) |
fdo#73698 check for empty aOut
Change-Id: I0da26ef746553618bd8aee69f21ff0d1261efbf6
Reviewed-on: https://gerrit.libreoffice.org/7474
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | basic/source/runtime/iosys.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 3e4b9bc79968..bbdfcf91c044 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -983,7 +983,7 @@ void SbiIoSystem::WriteCon(const OUString& rText) } OUString s(aOut.copy(0, n1)); aOut = aOut.copy(n1); - while (aOut[0] == '\n' || aOut[0] == '\r') + while ( !aOut.isEmpty() && (aOut[0] == '\n' || aOut[0] == '\r') ) { aOut = aOut.copy(1); } |