diff options
Diffstat (limited to 'writerfilter/source/doctok/WW8StreamImpl.cxx')
-rw-r--r-- | writerfilter/source/doctok/WW8StreamImpl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/writerfilter/source/doctok/WW8StreamImpl.cxx b/writerfilter/source/doctok/WW8StreamImpl.cxx index 741857015d3b..23cecbbe6118 100644 --- a/writerfilter/source/doctok/WW8StreamImpl.cxx +++ b/writerfilter/source/doctok/WW8StreamImpl.cxx @@ -123,9 +123,10 @@ WW8Stream::Pointer_t WW8StreamImpl::getSubStream(const ::rtl::OUString & sId) } catch (...) { - throw ExceptionNotFound("Stream not found"); } + if (pResult.get() == NULL) + throw ExceptionNotFound("Stream not found"); return pResult; } |