Revision 592b9851
Added by Andreas Kohlbecker about 5 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/common/GeoLocationField.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.cdm.vaadin.component.common; |
10 | 10 |
|
11 |
import java.util.Optional; |
|
12 |
|
|
11 | 13 |
import org.apache.commons.lang3.StringUtils; |
12 | 14 |
import org.apache.log4j.Logger; |
13 | 15 |
import org.vaadin.addon.leaflet.LCircle; |
... | ... | |
220 | 222 |
* {@inheritDoc} |
221 | 223 |
*/ |
222 | 224 |
@Override |
223 |
public FieldGroup getFieldGroup() {
|
|
224 |
return fieldGroup;
|
|
225 |
public Optional<FieldGroup> getFieldGroup() {
|
|
226 |
return Optional.of(fieldGroup);
|
|
225 | 227 |
} |
226 | 228 |
|
227 | 229 |
public ListSelect getReferenceSystemSelect() { |
Also available in: Unified diff
ref #8107 getFieldGroup() returns Optional to avoid NPEs and logging errors before rethrowing as PopupEditorException