Revision 9bd8f2fb
Added by Andreas Kohlbecker over 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/StartRegistrationPresenter.java | ||
---|---|---|
82 | 82 |
@EventListener(condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Action).ADD") |
83 | 83 |
public void onReferenceEditorActionAdd(ReferenceEditorAction event) { |
84 | 84 |
|
85 |
if(getView().getNewPublicationButton() != event.getSourceComponent()){ |
|
85 |
if(getView() == null || getView().getNewPublicationButton() != event.getSourceComponent()){
|
|
86 | 86 |
return; |
87 | 87 |
} |
88 | 88 |
newReferencePopup = getNavigationManager().showInPopup(ReferencePopupEditor.class); |
Also available in: Unified diff
fixing NPE in StartRegistrationPresenter