aboutsummaryrefslogtreecommitdiff
path: root/common/src/at/gv/egovernment/moa/util
diff options
context:
space:
mode:
authorrudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-06-24 18:31:51 +0000
committerrudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d>2004-06-24 18:31:51 +0000
commit2c72f5741e7b2a5338b41a40ee42d05ffe63f3e3 (patch)
treebd7beaf756d8fbd037dead8d472f011103747b81 /common/src/at/gv/egovernment/moa/util
parente1879adc16bfdd6e32bd521d3edd9c2e3e862041 (diff)
downloadmoa-id-spss-2c72f5741e7b2a5338b41a40ee42d05ffe63f3e3.tar.gz
moa-id-spss-2c72f5741e7b2a5338b41a40ee42d05ffe63f3e3.tar.bz2
moa-id-spss-2c72f5741e7b2a5338b41a40ee42d05ffe63f3e3.zip
fixed MalformedURLException (RSCH)
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@134 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'common/src/at/gv/egovernment/moa/util')
-rw-r--r--common/src/at/gv/egovernment/moa/util/DOMUtils.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/src/at/gv/egovernment/moa/util/DOMUtils.java b/common/src/at/gv/egovernment/moa/util/DOMUtils.java
index f44804927..f0e7768be 100644
--- a/common/src/at/gv/egovernment/moa/util/DOMUtils.java
+++ b/common/src/at/gv/egovernment/moa/util/DOMUtils.java
@@ -210,7 +210,11 @@ public class DOMUtils {
}
// parse the document and return it
- parser.parse(new InputSource(baStream));
+ // if debug is enabled: use copy of strem (baStream) else use orig stream
+ if(null != baStream)
+ parser.parse(new InputSource(baStream));
+ else
+ parser.parse(new InputSource(inputStream));
} catch(SAXException e) {
if(true == Logger.isDebugEnabled() && null != buffer) {
String xmlContent = new String(buffer);