SOLR-1779: handle all spaces between a comma properly

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@911585 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2010-02-18 21:07:49 +00:00
parent 74f73a3a71
commit d5f6ae6095
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ public class DistanceUtils {
out[i] = Double.parseDouble(externalVal.substring(start, end));
start = idx + 1;
end = externalVal.indexOf(',', start);
idex = end;
idx = end;
if (end == -1) {
end = externalVal.length();
}