This closes #689

This commit is contained in:
Clebert Suconic 2016-07-29 15:44:40 -04:00
commit f44e87f43e
1 changed files with 3 additions and 2 deletions

View File

@ -258,9 +258,10 @@ public class AeroGearConnectorService implements ConnectorService, Consumer, Mes
Set<SimpleString> propertyNames = message.getPropertyNames();
for (SimpleString propertyName : propertyNames) {
if (propertyName.toString().startsWith("AEROGEAR_") && !AeroGearConstants.ALLOWABLE_PROPERTIES.contains(propertyName)) {
String nameString = propertyName.toString();
if (nameString.startsWith("AEROGEAR_") && !AeroGearConstants.ALLOWABLE_PROPERTIES.contains(nameString)) {
Object property = message.getTypedProperties().getProperty(propertyName);
builder.attribute(propertyName.toString(), property.toString());
builder.attribute(nameString, property.toString());
}
}