Project

General

Profile

« Previous | Next » 

Revision 3f2943e8

Added by pplitzner almost 5 years ago

Fix potential NPE

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/EmptyElement.java
36 36
		}
37 37
	}
38 38

  
39
	/* (non-Javadoc)
40
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement#createControls(eu.etaxonomy.taxeditor.ui.element.ICdmFormElement, java.lang.Object, int)
41
	 */
42 39
	@Override
43 40
	protected void createControls(ICdmFormElement formElement, Object entity, int style) {
44 41
	    //empty
45 42
	}
46 43

  
47
    /* (non-Javadoc)
48
     * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement#handleEvent(java.lang.Object)
49
     */
50
    @Override
44
	@Override
51 45
    public void handleEvent(Object eventSource) {
52 46
        // empty
53 47
    }
48

  
49
	@Override
50
	public void setEntity(Object entity) {
51
	    // nothing
52
	}
54 53
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/EmptySection.java
34 34
    protected AbstractCdmDetailElement<Object> createCdmDetailElement(AbstractCdmDetailSection<Object> parentElement, int style) {
35 35
        return formFactory.createEmptyElement(parentElement, null);
36 36
    }
37

  
38
    @Override
39
    public void setEntity(Object entity) {
40
        //nothing
41
    }
37 42
}

Also available in: Unified diff