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

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