diff options
author | Joachim Lingner <jl@openoffice.org> | 2004-04-28 08:11:38 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2004-04-28 08:11:38 +0000 |
commit | 04517cb75df02f6547b169a2075bb8bf8f4b4286 (patch) | |
tree | 5db97494c8efa9976cb619a084dfe060aaaf0742 /jvmfwk/source | |
parent | a1036950dd13a28bfb5551ab8e481cd1f18a2f01 (diff) |
#i20052#
Diffstat (limited to 'jvmfwk/source')
-rw-r--r-- | jvmfwk/source/fwkutil.cxx | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/jvmfwk/source/fwkutil.cxx b/jvmfwk/source/fwkutil.cxx index 1fd415d61ad4..e9864ccaae09 100644 --- a/jvmfwk/source/fwkutil.cxx +++ b/jvmfwk/source/fwkutil.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fwkutil.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: jl $ $Date: 2004-04-27 15:22:14 $ + * last change: $Author: jl $ $Date: 2004-04-28 09:11:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -530,22 +530,25 @@ javaFrameworkError getVersionInformation( jfw::CXPathObjectPtr xPathObjectVersions; xPathObjectVersions = xmlXPathEvalExpression((xmlChar*) sExpresion.getStr(), context); - xmlNode* cur = xPathObjectVersions->nodesetval->nodeTab[0]; - while (cur != NULL) + if (xPathObjectVersions->nodesetval) { - if (cur->type == XML_ELEMENT_NODE ) + xmlNode* cur = xPathObjectVersions->nodesetval->nodeTab[0]; + while (cur != NULL) { - if (xmlStrcmp(cur->name, (xmlChar*) "version") == 0) + if (cur->type == XML_ELEMENT_NODE ) { - jfw::CXmlCharPtr sVersion; - sVersion = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); - rtl::OString osVersion((sal_Char*)(xmlChar*) sVersion); - rtl::OUString usVersion = rtl::OStringToOUString( - osVersion, RTL_TEXTENCODING_UTF8); - pVersionInfo->addExcludeVersion(usVersion); + if (xmlStrcmp(cur->name, (xmlChar*) "version") == 0) + { + jfw::CXmlCharPtr sVersion; + sVersion = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); + rtl::OString osVersion((sal_Char*)(xmlChar*) sVersion); + rtl::OUString usVersion = rtl::OStringToOUString( + osVersion, RTL_TEXTENCODING_UTF8); + pVersionInfo->addExcludeVersion(usVersion); + } } + cur = cur->next; } - cur = cur->next; } return JFW_E_NONE; } |