diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-06-30 15:54:14 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-06-30 17:45:14 +0200 |
commit | ac7141d750447335787829e26271c0490e55826c (patch) | |
tree | f495ad9d3ddeb42976ee29525e55a5ae6cf42cb0 /sfx2/source/notebookbar/SfxNotebookBar.cxx | |
parent | c92d571150ae50062313beef0f1ce01bfb0b3120 (diff) |
Avoid com.sun.star.container.NoSuchElementException "Active"
Just launch Writer without any file and look at this kind of logs:
warn:unotools:4125:4125:unotools/source/config/confignode.cxx:444: DBG_UNHANDLED_EXCEPTION in com::sun::star::uno::Any utl::OConfigurationNode::getNodeValue(const rtl::OUString&) const
type: com.sun.star.container.NoSuchElementException
message: Active
context: configmgr::RootAccess
Change-Id: I42d4a653061accbf124c62d51ea341eed8e44579
Reviewed-on: https://gerrit.libreoffice.org/56760
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sfx2/source/notebookbar/SfxNotebookBar.cxx')
-rw-r--r-- | sfx2/source/notebookbar/SfxNotebookBar.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx index 3289638bcdef..77ed3f8c495c 100644 --- a/sfx2/source/notebookbar/SfxNotebookBar.cxx +++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx @@ -206,6 +206,8 @@ bool SfxNotebookBar::IsActive() const Reference<frame::XModuleManager> xModuleManager = frame::ModuleManager::create( ::comphelper::getProcessComponentContext() ); eApp = vcl::EnumContext::GetApplicationEnum(xModuleManager->identify(xFrame)); } + else + return false; OUStringBuffer aPath("org.openoffice.Office.UI.ToolbarMode/Applications/"); aPath.append( lcl_getAppName( eApp ) ); |