summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-06-06 10:52:17 +0000
committerRüdiger Timm <rt@openoffice.org>2008-06-06 10:52:17 +0000
commit908c21a3d2ed6ab9cbfb5bb39b58dba458add54e (patch)
tree90bd9f529fa3fb54bf00cb6eb03b27ebbb2f7e84 /extensions
parent9932553e176754f77340da61133787de5d8ddb3f (diff)
INTEGRATION: CWS xmlfix2 (1.9.4); FILE MERGED
2008/05/15 17:15:07 mst 1.9.4.2: RESYNC: (1.9-1.10); FILE MERGED 2008/03/31 14:28:05 mst 1.9.4.1: #i81678#: interface change: XXPathAPI - extensions/source/update/feed/upatefeed.cxx, extensions/source/update/check/upateprotocol.cxx: + adapt to changes in css.xml.xpath.XXPathAPI
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/update/check/updateprotocol.cxx34
1 files changed, 27 insertions, 7 deletions
diff --git a/extensions/source/update/check/updateprotocol.cxx b/extensions/source/update/check/updateprotocol.cxx
index 6187b4b4ae52..1de8da99b82b 100644
--- a/extensions/source/update/check/updateprotocol.cxx
+++ b/extensions/source/update/check/updateprotocol.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: updateprotocol.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
* This file is part of OpenOffice.org.
*
@@ -156,8 +156,13 @@ checkForUpdates(
if( aUpdateInfoEnumeration->nextElement() >>= aEntry )
{
uno::Reference< xml::dom::XNode > xNode( aEntry.UpdateDocument.get() );
- uno::Reference< xml::dom::XNodeList > xNodeList =
- xXPath->selectNodeList(xNode, aXPathExpression + UNISTRING("/inst:update/attribute::src"));
+ uno::Reference< xml::dom::XNodeList > xNodeList;
+ try {
+ xNodeList = xXPath->selectNodeList(xNode, aXPathExpression
+ + UNISTRING("/inst:update/attribute::src"));
+ } catch (css::xml::xpath::XPathException &) {
+ // ignore
+ }
/*
o_rUpdateInfo.Sources.push_back( DownloadSource(true,
@@ -179,13 +184,23 @@ checkForUpdates(
}
}
- uno::Reference< xml::dom::XNode > xNode2 =
- xXPath->selectSingleNode(xNode, aXPathExpression + UNISTRING("/inst:version/text()"));
+ uno::Reference< xml::dom::XNode > xNode2;
+ try {
+ xNode2 = xXPath->selectSingleNode(xNode, aXPathExpression
+ + UNISTRING("/inst:version/text()"));
+ } catch (css::xml::xpath::XPathException &) {
+ // ignore
+ }
if( xNode2.is() )
o_rUpdateInfo.Version = xNode2->getNodeValue();
- xNode2 = xXPath->selectSingleNode(xNode, aXPathExpression + UNISTRING("/inst:buildid/text()"));
+ try {
+ xNode2 = xXPath->selectSingleNode(xNode, aXPathExpression
+ + UNISTRING("/inst:buildid/text()"));
+ } catch (css::xml::xpath::XPathException &) {
+ // ignore
+ }
if( xNode2.is() )
o_rUpdateInfo.BuildId = xNode2->getNodeValue();
@@ -193,7 +208,12 @@ checkForUpdates(
o_rUpdateInfo.Description = aEntry.Description;
// Release Notes
- xNodeList = xXPath->selectNodeList(xNode, aXPathExpression + UNISTRING("/inst:relnote"));
+ try {
+ xNodeList = xXPath->selectNodeList(xNode, aXPathExpression
+ + UNISTRING("/inst:relnote"));
+ } catch (css::xml::xpath::XPathException &) {
+ // ignore
+ }
imax = xNodeList->getLength();
for( i = 0; i < imax; ++i )
{