- From: CVS User ylafon <cvsmail@w3.org>
- Date: Wed, 02 Jan 2013 14:32:20 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3 In directory roscoe:/tmp/cvs-serv22120/css3 Modified Files: CssElevation.java Log Message: npe fix on angle value --- /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssElevation.java 2012/12/18 19:32:30 1.1 +++ /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssElevation.java 2013/01/02 14:32:20 1.2 @@ -1,5 +1,5 @@ // -// $Id: CssElevation.java,v 1.1 2012/12/18 19:32:30 ylafon Exp $ +// $Id: CssElevation.java,v 1.2 2013/01/02 14:32:20 ylafon Exp $ // // (c) COPYRIGHT MIT, ERCIM and Keio University 2011 // Please first read the full copyright statement in file COPYRIGHT.html @@ -43,6 +43,7 @@ * Create a new CssElevation */ public CssElevation() { + value = initial; } /** @@ -67,7 +68,7 @@ switch (val.getType()) { case CssTypes.CSS_ANGLE: // TODO getAngle() - CssAngle a = (CssAngle) value; + CssAngle a = (CssAngle) val; float v = a.getDegree(); if (v > 90 && v < 270) { throw new InvalidParamException("elevation.range", ac);
Received on Wednesday, 2 January 2013 14:32:21 UTC