- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 10 Sep 2009 08:32:43 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn In directory hutz:/tmp/cvs-serv30287/src/org/w3c/unicorn Modified Files: UnicornCall.java Log Message: fixed NPE was thrown if an unknown parameter were found in the request Index: UnicornCall.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/UnicornCall.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- UnicornCall.java 9 Sep 2009 10:15:30 -0000 1.11 +++ UnicornCall.java 10 Sep 2009 08:32:41 -0000 1.12 @@ -501,6 +501,12 @@ for (final String sUseParameterValue : tStringUseParameterValue) { final Value aValue = mapOfValue.get(sUseParameterValue); + + if (aValue == null) { + logger.warn("unknown mapping for parameter value: " + sUseParameterValue); + continue; + } + final Map<String, List<Mapping>> mapOfMapping = aValue .getMapOfMapping();
Received on Thursday, 10 September 2009 08:32:52 UTC