Project

General

Profile

« Previous | Next » 

Revision 592b9851

Added by Andreas Kohlbecker about 5 years ago

ref #8107 getFieldGroup() returns Optional to avoid NPEs and logging errors before rethrowing as PopupEditorException

View differences:

src/main/java/eu/etaxonomy/vaadin/component/NestedFieldGroup.java
8 8
*/
9 9
package eu.etaxonomy.vaadin.component;
10 10

  
11
import java.util.Optional;
12

  
11 13
import com.vaadin.data.fieldgroup.FieldGroup;
12 14

  
13 15
/**
......
22 24
     *
23 25
     * @return the FieldGroup, may be <code>null</code>.
24 26
     */
25
    public abstract FieldGroup getFieldGroup();
27
    public abstract Optional<FieldGroup> getFieldGroup();
26 28

  
27 29
    public abstract void registerParentFieldGroup(FieldGroup parent);
28 30

  

Also available in: Unified diff