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

2002/css-validator/org/w3c/css/css CssValidator.java,1.12,1.13

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 26 Sep 2011 14:32:18 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1R8CEE-0004N6-LP@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv16740/org/w3c/css/css

Modified Files:
	CssValidator.java 
Log Message:
fix a NPE when profile is not given

Index: CssValidator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/CssValidator.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- CssValidator.java	17 Sep 2011 06:02:26 -0000	1.12
+++ CssValidator.java	26 Sep 2011 14:32:16 -0000	1.13
@@ -110,7 +110,7 @@
 
         // CSS version to use
         String profile = (String) style.params.get("profile");
-        style.ac.setCssVersionAndProfile(profile.toLowerCase());
+        style.ac.setCssVersionAndProfile(profile);
 
         // medium to use
         style.ac.setMedium((String) style.params.get("medium"));
Received on Monday, 26 September 2011 14:32:23 UTC

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