diff options
author | Joachim Lingner <jl@openoffice.org> | 2004-05-10 12:40:47 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2004-05-10 12:40:47 +0000 |
commit | 17b1692682bf0d964b53c68607d6a664521befad (patch) | |
tree | 05bb0d49cbbbefb03d206770ee90dc6c2094e6c5 /jvmfwk/source/elements.cxx | |
parent | ae204081a740df7ed847e9844b1626db777940b6 (diff) |
#i20052#
Diffstat (limited to 'jvmfwk/source/elements.cxx')
-rw-r--r-- | jvmfwk/source/elements.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/jvmfwk/source/elements.cxx b/jvmfwk/source/elements.cxx index fafe406258f2..e20b5f6ee160 100644 --- a/jvmfwk/source/elements.cxx +++ b/jvmfwk/source/elements.cxx @@ -2,9 +2,9 @@ * * $RCSfile: elements.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: jl $ $Date: 2004-05-05 10:14:01 $ + * last change: $Author: jl $ $Date: 2004-05-10 13:40:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -578,6 +578,13 @@ javaFrameworkError CNodeJava::loadShareSettings() javaFrameworkError errcode = JFW_E_NONE; CXmlDocPtr docShare; + //test if the file exist to avoid warning messages from libxml + rtl::OUString sSettingsUrl = getSharedSettingsURL(); + osl::DirectoryItem testFileItem; + osl::File::RC fileError = osl::DirectoryItem::get(sSettingsUrl, testFileItem); + if (fileError == osl::FileBase::E_NOENT) + return JFW_E_NONE; + //Read the share elements, do not heed the nil attributes rtl::OString sSettingsPath = jfw::getSharedSettingsPath(); //There must not be a share settings file |