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

2006/unicorn/src/org/w3c/unicorn/tasklisttree TLTExec.java,1.1.2.1,1.1.2.2

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 17 Aug 2009 09:08:46 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1McyCs-00044M-TZ@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklisttree
In directory hutz:/tmp/cvs-serv15628/src/org/w3c/unicorn/tasklisttree

Modified Files:
      Tag: dev2
	TLTExec.java 
Log Message:
added a verification in TLTExec() to avoid NullPointerExceptions

Index: TLTExec.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklisttree/Attic/TLTExec.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- TLTExec.java	11 Aug 2009 16:05:38 -0000	1.1.2.1
+++ TLTExec.java	17 Aug 2009 09:08:44 -0000	1.1.2.2
@@ -41,7 +41,7 @@
 	public TLTExec(String id, Observer obs, String value, String type,
 			ParamType param) {
 		String toTrace = "constructor(" + id + ", ";
-		if (type.equals("observation")) {
+		if (type.equals("observation") && obs != null) {
 			toTrace += obs.getID() + ", ";
 			this.observer = obs;
 		}
Received on Monday, 17 August 2009 09:19:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:38 UTC