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

2006/unicorn/src/org/w3c/unicorn/input InputParameter.java,1.2,1.3

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 01 Oct 2009 18:12:17 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MtQ8X-0000Dn-NF@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/input
In directory hutz:/tmp/cvs-serv837/src/org/w3c/unicorn/input

Modified Files:
	InputParameter.java 
Log Message:
fixed potential NPE

Index: InputParameter.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/input/InputParameter.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- InputParameter.java	1 Oct 2009 14:01:15 -0000	1.2
+++ InputParameter.java	1 Oct 2009 18:12:15 -0000	1.3
@@ -46,7 +46,8 @@
 	}
 
 	public void dispose() {
-		inputModule.dispose();
+		if (inputModule != null)
+			inputModule.dispose();
 	}
 	
 }
Received on Thursday, 1 October 2009 18:12:21 UTC

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