// we need to bind back this editors conversation
// we also need to reload the entity because the conversation used to
// to create / save the entity may have been closed
- if(((AnnotatedLineDocumentProvider) getDocumentProvider()).getEntityCreator(getEditorInput()).savesEntity()) {
+ if(entity != null && ((AnnotatedLineDocumentProvider) getDocumentProvider()).getEntityCreator(getEditorInput()).savesEntity()) {
getConversationHolder().bind();
Object object = CdmStore.getService(IOccurrenceService.class).load(((CdmBase)entity).getUuid());
entity = HibernateProxyHelper.deproxy(object);