fix address field computation when no address is available
The code would completely remove the name map when
it could not find an appropriate address tag.
@@ -154,7 +154,7 @@ public class PhotonDoc {
Map<String, String> map = nullToEmptyMap(existingField);
setOrReplace(field, map, addressFieldName);
return map;
- } else return null;
+ } else return existingField;
}
private Map<String, String> nullToEmptyMap(Map<String, String> map) {
