Project

General

Profile

« Previous | Next » 

Revision 33a160be

Added by Patrick Plitzner over 6 years ago

Fix possible NPE

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerUtilE4.java
65 65
                        String commandId = configElement.getAttribute("commandId"); //$NON-NLS-1$
66 66
                        String viewerName = configElement.getAttribute("viewerName"); //$NON-NLS-1$
67 67
                        Class<?> selectionClass = Class.forName(configElement.getAttribute("selection")); //$NON-NLS-1$
68
                        if(selectionClass.isAssignableFrom(input.getClass())){
68
                        if(selectionClass!=null
69
                                && commandId!=null
70
                                && viewerName!=null
71
                                && selectionClass.isAssignableFrom(input.getClass())){
69 72
                            Command command = commandService.getCommand(commandId);
70 73
                            commandViewerNameMap.put(command, viewerName);
71 74
                        }

Also available in: Unified diff