Revision 0574feac
Added by Cherian Mathew over 10 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/annotatedlineeditor/AnnotatedLineEditor.java | ||
---|---|---|
160 | 160 |
// we need to bind back this editors conversation |
161 | 161 |
// we also need to reload the entity because the conversation used to |
162 | 162 |
// to create / save the entity may have been closed |
163 |
if(((AnnotatedLineDocumentProvider) getDocumentProvider()).getEntityCreator(getEditorInput()).savesEntity()) { |
|
163 |
if(entity != null && ((AnnotatedLineDocumentProvider) getDocumentProvider()).getEntityCreator(getEditorInput()).savesEntity()) {
|
|
164 | 164 |
getConversationHolder().bind(); |
165 | 165 |
Object object = CdmStore.getService(IOccurrenceService.class).load(((CdmBase)entity).getUuid()); |
166 | 166 |
entity = HibernateProxyHelper.deproxy(object); |
Also available in: Unified diff
check to see if entity is null before loading by hibernate