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

2006/unicorn/src/org/w3c/unicorn/tests UnicornClient.java,1.4,1.5

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 04 Sep 2009 17:10:01 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MjcIT-0000tI-Qy@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/tests
In directory hutz:/tmp/cvs-serv3385/src/org/w3c/unicorn/tests

Modified Files:
	UnicornClient.java 
Log Message:
added verification that unicorn is initialized before performing the observation

Index: UnicornClient.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/tests/UnicornClient.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- UnicornClient.java	4 Sep 2009 15:49:48 -0000	1.4
+++ UnicornClient.java	4 Sep 2009 17:09:59 -0000	1.5
@@ -67,6 +67,11 @@
 			
 			Framework.init();
 			
+			if (!Framework.isUcnInitialized) {
+				System.err.println(">> Unicorn is not properly initialized.");
+				return;
+			}
+			
 			UnicornCall aUnicornCall = new UnicornCall();
 
 			// parse other parameters: "x2=on,toto=titi" to a
Received on Friday, 4 September 2009 17:10:11 GMT

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