diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-02-07 19:57:29 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-16 09:20:43 +0100 |
commit | 91638b8c47be54c4ae50e7c0bb56dd9021a1ebfb (patch) | |
tree | 34fa2714970cda47c5586f5128e63944d45223d0 /desktop/source/lib | |
parent | c8b36dcde79588ec71957117be1c19f3ddaec647 (diff) |
LOK: Return NULL when we failed to load the document.
Change-Id: I7740549f35cdbe21556e1e066bbc6c0355463b79
Diffstat (limited to 'desktop/source/lib')
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 37237d0b002c..5a5f609325e4 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -327,7 +327,6 @@ static LibreOfficeKitDocument* lo_documentLoad(LibreOfficeKit* pThis, const char return NULL; } - try { uno::Reference<lang::XComponent> xComponent; @@ -339,6 +338,7 @@ static LibreOfficeKitDocument* lo_documentLoad(LibreOfficeKit* pThis, const char { pLib->maLastExceptionMsg = "loadComponentFromURL returned an empty reference"; SAL_INFO("lok", "Document can't be loaded - " << pLib->maLastExceptionMsg); + return NULL; } return new LibLODocument_Impl(xComponent); |