THashMap<String,FieldAssignment> recordMap = new THashMap<String,FieldAssignment>(fields.length);
for(FieldAssignment field : fields) {
if(field.value == null) {
+ String actualName = field.name;
+ if(actualName.charAt(0) == '?')
+ actualName = actualName.substring(1);
String bestMatch = null;
int bestMatchLength = 0;
for(int i=0;i<fieldNames.length;++i) {
String fieldName = fieldNames[i];
- if(field.name.startsWith(fieldName) && fieldName.length() > bestMatchLength) {
+ if(actualName.startsWith(fieldName) && fieldName.length() > bestMatchLength) {
bestMatch = fieldName;
bestMatchLength = fieldName.length();
}