Project

General

Profile

Revision 3141e5ac

ID3141e5ac256f84515d80f264df1e69728d5b1e5b
Parent 8c2f8358
Child e34c0af1

Added by Patrick Plitzner over 2 years ago

ref #6925 fix potential NPE

View differences:

eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/LifeCycleManager.java
72 72
        List<MPart> elements = modelService.findElements(application, null, MPart.class, Arrays.asList(NON_RESTORE));
73 73
        for (MPart part : elements) {
74 74
            MElementContainer<MUIElement> parent = part.getParent();
75
            if(parent.getSelectedElement().equals(part)){
76
                parent.setSelectedElement(null);
75
            if(parent!=null){
76
                if(parent.getSelectedElement()!=null
77
                        && parent.getSelectedElement().equals(part)){
78
                    parent.setSelectedElement(null);
79
                }
80
                parent.getChildren().remove(part);
77 81
            }
78
            parent.getChildren().remove(part);
79 82
        }
80 83

  
81 84
        //FIXME E4 org.eclipse.ui.ediorss will not exist anymore when fully migrated

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)