import eu.etaxonomy.cdm.api.application.CdmChangeEvent;
import eu.etaxonomy.cdm.api.application.CdmChangeEvent.Action;
import eu.etaxonomy.cdm.api.application.ICdmChangeListener;
+import eu.etaxonomy.cdm.api.application.ICdmDataChangeService;
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService;
if(cdmEntitySession != null) {
cdmEntitySession.dispose();
}
- CdmApplicationState.getCurrentDataChangeService().unregister(this);
+ ICdmDataChangeService currentDataChangeService = CdmApplicationState.getCurrentDataChangeService();
+ if(currentDataChangeService!=null){
+ currentDataChangeService.unregister(this);
+ }
super.dispose();
}