Revision 457199e5
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java | ||
---|---|---|
745 | 745 |
@Optional |
746 | 746 |
private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_NAME_EDITOR)CdmBase cdmbase){ |
747 | 747 |
|
748 |
if (EventUtility.getTaxonEditor().equals(this) || (this.taxon.equals(cdmbase) || this.taxon.getName().equals(cdmbase))){
|
|
748 |
if ((EventUtility.getTaxonEditor() != null &&EventUtility.getTaxonEditor().equals(this)) || (this.taxon != null && this.taxon.equals(cdmbase)) || (this.taxon != null && this.taxon.getName().equals(cdmbase))){
|
|
749 | 749 |
this.redraw(false, true, true, true); |
750 | 750 |
this.setDirty(); |
751 | 751 |
if (cdmbase instanceof TaxonBase){ |
Also available in: Unified diff
fix #7668: fix potential NPE