Project

General

Profile

« Previous | Next » 

Revision 9bd8f2fb

Added by Andreas Kohlbecker almost 5 years ago

fixing NPE in StartRegistrationPresenter

View differences:

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