Revision de550782
Added by Katja Luther over 5 years ago
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
fix #7371: fix NPE when deleting polytomous key