This closes #659

This commit is contained in:
Clebert Suconic 2016-07-25 14:32:47 -04:00
commit bd2722503a
1 changed files with 6 additions and 5 deletions

View File

@ -376,7 +376,8 @@ public final class XmlDataImporter extends ActionAbstract {
String key = "";
String value = "";
String propertyType = "";
String realValue = null;
String realStringValue = null;
SimpleString realSimpleStringValue = null;
for (int i = 0; i < reader.getAttributeCount(); i++) {
String attributeName = reader.getAttributeLocalName(i);
@ -420,15 +421,15 @@ public final class XmlDataImporter extends ActionAbstract {
break;
case XmlDataConstants.PROPERTY_TYPE_SIMPLE_STRING:
if (!value.equals(XmlDataConstants.NULL)) {
realValue = value;
realSimpleStringValue = new SimpleString(value);
}
message.putStringProperty(new SimpleString(key), new SimpleString(realValue));
message.putStringProperty(new SimpleString(key), realSimpleStringValue);
break;
case XmlDataConstants.PROPERTY_TYPE_STRING:
if (!value.equals(XmlDataConstants.NULL)) {
realValue = value;
realStringValue = value;
}
message.putStringProperty(key, realValue);
message.putStringProperty(key, realStringValue);
break;
}
}