diff options
author | Eike Rathke <erack@redhat.com> | 2017-07-19 21:24:06 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-07-19 21:24:20 +0200 |
commit | 22ae038a56b85e86219922c2759544545f2d813d (patch) | |
tree | 4f5b3f0a9b5923f6cb4e67fd9aa0a9a09c97e2b3 | |
parent | 667aa6ade94a4dee441868d21db037e42c871932 (diff) |
Fix crash when saving new spreadsheet as dBase/.dbf, tdf#108789 follow-up
... as there is no input stream.
Regression from
commit 7f1465a9599e9665159dd2d823a6e9064cca5703
Date: Sun Jun 25 17:21:45 2017 +0200
Change-Id: Ib97a4878fe8cf28e5d0f1dc6cc07800ea1635e68
-rw-r--r-- | sc/source/ui/unoobj/filtuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/filtuno.cxx b/sc/source/ui/unoobj/filtuno.cxx index df7456273747..c20dd62f1406 100644 --- a/sc/source/ui/unoobj/filtuno.cxx +++ b/sc/source/ui/unoobj/filtuno.cxx @@ -73,7 +73,7 @@ namespace charsetSource load_CharSet(rtl_TextEncoding &nCharSet, bool bExport, SvStream* dbf_Stream) { - if (dbfReadCharset(nCharSet, dbf_Stream)) + if (dbf_Stream && dbfReadCharset(nCharSet, dbf_Stream)) { return charsetSource::charset_from_file; } |