copy paste error

This commit is contained in:
bancika
2013-03-04 12:21:30 +00:00
parent eb1c4a6688
commit 0ff52979ea
2 changed files with 5 additions and 0 deletions
@@ -1739,6 +1739,11 @@ public class Presenter implements IPlugInPort {
Template template) { Template template) {
LOG.info(String.format("setNewComponentSlot(%s)", LOG.info(String.format("setNewComponentSlot(%s)",
componentType == null ? null : componentType.getName())); componentType == null ? null : componentType.getName()));
if (componentType != null && componentType.getInstanceClass() == null) {
LOG.info("Cannot set new component type slot for type " + componentType.getName());
setNewComponentTypeSlot(null, null);
return;
}
try { try {
instantiationManager.setComponentTypeSlot(componentType, template, instantiationManager.setComponentTypeSlot(componentType, template,
currentProject); currentProject);