2006/unicorn/src/org/w3c/unicorn/tasklist Task.java,1.7,1.8

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

Modified Files:
	Task.java 
Log Message:
removed a possible NPE from toString method

Index: Task.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklist/Task.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Task.java	10 Sep 2009 15:45:49 -0000	1.7
+++ Task.java	30 Sep 2009 13:39:26 -0000	1.8
@@ -421,8 +421,10 @@
 		for (String key : mapOfTaskParameter.keySet()) {
 			Parameter param = mapOfTaskParameter.get(key);
 			aStringBuffer.append("\t\t" + key + " (" + param.getUiLevel() + "-" + param.getType() + ") => \n");
-			for (String key1: param.getMapOfValue().keySet()) {
-				aStringBuffer.append("\t\t\t" + key1 + " => " + mapOfTaskParameter.get(key).getMapOfValue().get(key1) + "\n");
+			if (param.getMapOfValue() != null) {
+				for (String key1: param.getMapOfValue().keySet()) {
+					aStringBuffer.append("\t\t\t" + key1 + " => " + mapOfTaskParameter.get(key).getMapOfValue().get(key1) + "\n");
+				}
 			}
 		}
 		aStringBuffer.append("\treferences:").append(this.listOfReference);

Received on Wednesday, 30 September 2009 13:39:29 UTC