2006/unicorn/org/w3c/unicorn UnicornCall.java,1.2,1.3

Update of /sources/public/2006/unicorn/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv30025/org/w3c/unicorn

Modified Files:
	UnicornCall.java 
Log Message:
Fixed critical error with "nullpointerexception" in "UnicornCall.doRequests".

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/UnicornCall.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- UnicornCall.java	1 Sep 2006 14:30:17 -0000	1.2
+++ UnicornCall.java	8 Sep 2006 15:35:53 -0000	1.3
@@ -62,34 +62,7 @@
 	private boolean bPassedHigh;
 	private boolean bPassedMedium;
 	private boolean bPassedLow;
-/*
-	private UnicornCall(
-			final String sTask,
-			final EnumInputMethod aEnumInputMethod,
-			final String sDocumentName,
-			final Map<String, String[]> mapOfStringParameter) {
-		UnicornCall.logger.trace("Constructor(String, EnumInputMethod, String, Map<String, String[]>)");
-		if (UnicornCall.logger.isDebugEnabled()) {
-			UnicornCall.logger.debug("Task : "+sTask+".");
-			UnicornCall.logger.debug("Input method : "+aEnumInputMethod+".");
-			UnicornCall.logger.debug("Document name : "+sDocumentName+".");
-			UnicornCall.logger.debug("Map of parameter : "+mapOfStringParameter+".");
-		}
-
-		this.setTask(sTask);
-		this.aEnumInputMethod = aEnumInputMethod;
-		this.mapOfStringParameter = mapOfStringParameter;
-		this.sDocumentName = sDocumentName;
-
-		this.mapOfResponseHigh = new LinkedHashMap<String, Observationresponse>();		
-		this.mapOfResponseMedium = new LinkedHashMap<String, Observationresponse>();
-		this.mapOfResponseLow = new LinkedHashMap<String, Observationresponse>();
 
-		this.bPassedHigh = true;
-		this.bPassedMedium = true;
-		this.bPassedLow = true;
-	}
-*/
 	/**
 	 * Creates a new UnicornCall.
 	 */
@@ -245,6 +218,11 @@
 				aObservationResponse = (Observationresponse) Request.aUnmarshaller.unmarshal(
 						new URL("file:" + Property.get("PATH_TO_ERROR_TEMPLATES") + "en_unmarshalling_error.vm"));
 			}
+			catch (final NullPointerException e) {
+				UnicornCall.logger.error("Null Pointer Exception : "+e.getMessage(), e);
+				aObservationResponse = (Observationresponse) Request.aUnmarshaller.unmarshal(
+						new URL("file:" + Property.get("PATH_TO_ERROR_TEMPLATES") + "en_io_error.vm"));
+			}
 			catch (final IOException e) {
 				UnicornCall.logger.error("IO Exception : "+e.getMessage(), e);
 				aObservationResponse = (Observationresponse) Request.aUnmarshaller.unmarshal(

Received on Friday, 8 September 2006 15:36:02 UTC