From: Matthias L. (JIRA) <ji...@co...> - 2010-03-11 10:20:01
|
org.geotools.process.impl.SingleProcessFactory#checkName(Name name) returns always true unless name is null ----------------------------------------------------------------------------------------------------------- Key: GEOT-2977 URL: http://jira.codehaus.org/browse/GEOT-2977 Project: GeoTools Issue Type: Bug Affects Versions: 2.6.2 Reporter: Matthias Lendholt Priority: Trivial Fix For: 2.6.3 Bug in equals check in row 73 currently: if(!processName.equals(processName)) but it must be: if(!processName.equals(name)) PATCH: Index: src/main/java/org/geotools/process/impl/SingleProcessFactory.java =================================================================== --- src/main/java/org/geotools/process/impl/SingleProcessFactory.java (revision 34027) +++ src/main/java/org/geotools/process/impl/SingleProcessFactory.java (working copy) @@ -70,7 +70,7 @@ void checkName(Name name) { if(name == null) throw new NullPointerException("Process name cannot be null"); - if(!processName.equals(processName)) + if(!processName.equals(name)) throw new IllegalArgumentException("Unknown process '" + name + "', this factory knows only about '" + processName + "'"); } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |