Project

General

Profile

« Previous | Next » 

Revision 656fdfa3

Added by pplitzner over 4 years ago

Fix potential NPE

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/LinkWithTaxonHandlerE4.java
29 29

  
30 30
    @Execute
31 31
    public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) {
32
    	if (activePart.getObject() instanceof TaxonNavigatorE4) {
32
    	if (activePart!=null && activePart.getObject() instanceof TaxonNavigatorE4) {
33 33
	        TaxonNavigatorE4 taxonNavigator = (TaxonNavigatorE4) activePart.getObject();
34 34
	        taxonNavigator.setLinkWithTaxon(!taxonNavigator.isLinkWithTaxon());
35 35
	        if(taxonNavigator.isLinkWithTaxon()){

Also available in: Unified diff