Revision 4b40006d
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataPartE4.java | ||
---|---|---|
62 | 62 |
return; |
63 | 63 |
} |
64 | 64 |
|
65 |
IStructuredSelection structuredSelection = createSelection(selection); |
|
66 |
if(structuredSelection.isEmpty()){ |
|
67 |
showEmptyPage(); |
|
68 |
return; |
|
69 |
} |
|
70 |
|
|
71 | 65 |
Object partObject = createPartObject(activePart); |
72 | 66 |
|
73 | 67 |
if(partObject instanceof IPartContentHasSupplementalData) { |
68 |
|
|
69 |
IStructuredSelection structuredSelection = createSelection(selection); |
|
70 |
if(structuredSelection==null || structuredSelection.isEmpty()){ |
|
71 |
showEmptyPage(); |
|
72 |
return; |
|
73 |
} |
|
74 | 74 |
if(structuredSelection.size() != 1){ |
75 | 75 |
showEmptyPage(); |
76 | 76 |
return; |
Also available in: Unified diff
ref #6905, #6597 Fix potential NPE