summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--forms/source/xforms/submission/submission_get.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/forms/source/xforms/submission/submission_get.cxx b/forms/source/xforms/submission/submission_get.cxx
index a120e95e4e08..be8424cef9a6 100644
--- a/forms/source/xforms/submission/submission_get.cxx
+++ b/forms/source/xforms/submission/submission_get.cxx
@@ -88,7 +88,8 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const css::uno::Reference<
OUString aQueryURL = OStringToOUString(aUTF8QueryURL.makeStringAndClear(), RTL_TEXTENCODING_UTF8);
ucbhelper::Content aContent(aQueryURL, aEnvironment, m_xContext);
css::uno::Reference< XOutputStream > aPipe( css::io::Pipe::create(m_xContext), UNO_QUERY_THROW );
- aContent.openStream(aPipe);
+ if (!aContent.openStream(aPipe))
+ return UNKNOWN_ERROR;
// get reply
try {
m_aResultStream = aContent.openStream();