Fixed nullpointer in DMF dispatcher. (#617)
Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -52,6 +52,7 @@ import org.springframework.cloud.bus.ServiceMatcher;
|
|||||||
import org.springframework.cloud.bus.event.RemoteApplicationEvent;
|
import org.springframework.cloud.bus.event.RemoteApplicationEvent;
|
||||||
import org.springframework.context.event.EventListener;
|
import org.springframework.context.event.EventListener;
|
||||||
import org.springframework.data.domain.PageRequest;
|
import org.springframework.data.domain.PageRequest;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
|
|
||||||
@@ -278,7 +279,10 @@ public class AmqpMessageDispatcherService extends BaseAmqpService {
|
|||||||
amqpSoftwareModule.setModuleType(entry.getKey().getType().getKey());
|
amqpSoftwareModule.setModuleType(entry.getKey().getType().getKey());
|
||||||
amqpSoftwareModule.setModuleVersion(entry.getKey().getVersion());
|
amqpSoftwareModule.setModuleVersion(entry.getKey().getVersion());
|
||||||
amqpSoftwareModule.setArtifacts(convertArtifacts(target, entry.getKey().getArtifacts()));
|
amqpSoftwareModule.setArtifacts(convertArtifacts(target, entry.getKey().getArtifacts()));
|
||||||
amqpSoftwareModule.setMetadata(convertMetadata(entry.getValue()));
|
|
||||||
|
if (!CollectionUtils.isEmpty(entry.getValue())) {
|
||||||
|
amqpSoftwareModule.setMetadata(convertMetadata(entry.getValue()));
|
||||||
|
}
|
||||||
|
|
||||||
return amqpSoftwareModule;
|
return amqpSoftwareModule;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
ALTER TABLE sp_target CHANGE COLUMN update_status update_status integer not null;
|
||||||
|
ALTER TABLE sp_rollout CHANGE COLUMN action_type action_type integer not null;
|
||||||
|
ALTER TABLE sp_action CHANGE COLUMN action_type action_type integer not null;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
ALTER TABLE sp_target CHANGE COLUMN update_status update_status integer not null;
|
||||||
|
ALTER TABLE sp_rollout CHANGE COLUMN action_type action_type integer not null;
|
||||||
|
ALTER TABLE sp_action CHANGE COLUMN action_type action_type integer not null;
|
||||||
Reference in New Issue
Block a user