From 2c72f5741e7b2a5338b41a40ee42d05ffe63f3e3 Mon Sep 17 00:00:00 2001 From: rudolf Date: Thu, 24 Jun 2004 18:31:51 +0000 Subject: fixed MalformedURLException (RSCH) git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@134 d688527b-c9ab-4aba-bd8d-4036d912da1d --- common/src/at/gv/egovernment/moa/util/DOMUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common/src/at/gv') 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); -- cgit v1.2.3