- From: Damien Leroy via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 08 Sep 2006 15:35:55 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/org/w3c/unicorn/request
In directory hutz:/tmp/cvs-serv30025/org/w3c/unicorn/request
Modified Files:
URIRequest.java
Log Message:
Fixed critical error with "nullpointerexception" in "UnicornCall.doRequests".
Index: URIRequest.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/request/URIRequest.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- URIRequest.java 31 Aug 2006 09:09:25 -0000 1.1.1.1
+++ URIRequest.java 8 Sep 2006 15:35:53 -0000 1.2
@@ -63,6 +63,10 @@
public Observationresponse doRequest () throws IOException, JAXBException {
URIRequest.logger.trace("doRequest");
+ if (URIRequest.logger.isDebugEnabled()) {
+ URIRequest.logger.debug("URL : "+this.sURL+" .");
+ URIRequest.logger.debug("Parameters : "+this.sParameter+" .");
+ }
final URL aURL;
if (null == this.sParameter) {
aURL = new URL(this.sURL);
@@ -70,7 +74,7 @@
URIRequest.logger.debug(this.sParameter);
aURL = new URL(this.sURL + "?" + this.sParameter);
}
- URIRequest.logger.debug("URL : " + aURL + ".");
+ URIRequest.logger.debug("URL : " + aURL + " .");
final URLConnection aURLConnection = aURL.openConnection();
aURLConnection.setRequestProperty("Accept-Language", this.sLang);
return (Observationresponse) URIRequest.aUnmarshaller.unmarshal(aURLConnection.getInputStream());
Received on Friday, 8 September 2006 15:36:06 UTC