W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

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

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 30 Sep 2009 13:39:28 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MszOy-0007sS-3J@lionel-hutz.w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT