Project

General

Profile

« Previous | Next » 

Revision c5a29684

Added by Patrick Plitzner over 8 years ago

Fix possible NPE

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerContextMenu.java
108 108
            }
109 109
            ParameterizedCommand parameterizedCommand = ParameterizedCommand.generateCommand(command, params);
110 110
            try {
111
                handlerService.executeCommand(parameterizedCommand, null);
111
                if(parameterizedCommand!=null){
112
                    handlerService.executeCommand(parameterizedCommand, null);
113
                }
114
                else{
115
                    handlerService.executeCommand(command.getId(), null);
116
                }
112 117
            } catch (NotDefinedException nde) {
113 118
                throw new RuntimeException("Could not find open command: " + command.getId());
114 119
            } catch (Exception exception) {

Also available in: Unified diff