/** {@inheritDoc} */
@Override
public void setEntity(T entity) {
- selection_agent.setEntity(entity.getActor());
- text_description.setText(entity.getDescription());
- element_timePeriod.setEntity(entity.getTimeperiod());
+ if (selection_agent != null){
+ selection_agent.setEntity(entity.getActor());
+ text_description.setText(entity.getDescription());
+ element_timePeriod.setEntity(entity.getTimeperiod());
+ }
}
"Time Period", null, style);
text_description = formFactory.createTextWithLabelElement(element,
"Description", null, style);
+ if (entity != null){
+ selection_agent.setEntity(entity.getActor());
+ text_description.setText(entity.getDescription());
+ element_timePeriod.setEntity(entity.getTimeperiod());
+ }
}
}