Project

General

Profile

Revision de550782

IDde55078200c8f2e52f4784ed9aa6b1c6611ddb86
Parent c5cfeefd
Child 954982ef

Added by Katja Luther 9 months ago

fix #7371: fix NPE when deleting polytomous key

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/e4/handler/RemotingDeletePolytomousKeyHandlerE4.java
80 80
        for (MPart part : parts) {
81 81
            if(part.getElementId().equals("eu.etaxonomy.taxeditor.editor.key.polytomous.e4.PolytomousKeyListEditorE4")){
82 82
                PolytomousKeyListEditorE4 keyListEditor = (PolytomousKeyListEditorE4) part.getObject();
83
                UUID uuidForKey = keyListEditor.getEditorInput().getKey().getUuid();
84
                for (UUID keyUuid :keysToDelete) {
85
                    if(uuidForKey.equals(keyUuid)){
86
                        partService.hidePart(part, true);
83
                if (keyListEditor != null){
84
                    UUID uuidForKey = keyListEditor.getEditorInput().getKey().getUuid();
85
                    for (UUID keyUuid :keysToDelete) {
86
                        if(uuidForKey.equals(keyUuid)){
87
                            partService.hidePart(part, true);
88
                        }
87 89
                    }
88 90
                }
89 91
            }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)