summaryrefslogtreecommitdiff
path: root/jvmfwk
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2004-05-10 12:40:47 +0000
committerJoachim Lingner <jl@openoffice.org>2004-05-10 12:40:47 +0000
commit17b1692682bf0d964b53c68607d6a664521befad (patch)
tree05bb0d49cbbbefb03d206770ee90dc6c2094e6c5 /jvmfwk
parentae204081a740df7ed847e9844b1626db777940b6 (diff)
#i20052#
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/source/elements.cxx11
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