Add null check for resource properties
port
@@ -1183,7 +1183,10 @@ public class MicroIntegratorRegistry extends AbstractRegistry {
Object value = resourceProperties.get(key);
if (value instanceof List) {
if (((List) value).size() > 0) {
- properties.put(key, ((List) value).get(0));
+ Object propertyValue = ((List) value).get(0);
+ if (propertyValue != null) {
+ properties.put(key, propertyValue);
+ }
}
} else {
properties.put(key, value);
