Project

General

Profile

Revision ded94939

IDded94939b863b9d1d8543117a346151e62e7714a
Parent ea9daa81
Child b6ea271c

Added by Andreas Kohlbecker about 2 years ago

ref #6169 fixing NPE

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/registration/RegistrationItemEditButtonGroup.java
49 49
            // no name in the registration! we only show the typified name as label
50 50
            addComponent(new Label(regDto.getTypifiedName().getLabel()));
51 51
        }
52
        regDto.getTypeDesignations().keySet().iterator().forEachRemaining(key -> {
53
            Label label = new Label(key   + ":");
54
            label.setWidthUndefined();
55
            addComponent(label);
56
            labels.add(label);
57

  
58
            regDto.getTypeDesignations().get(key).forEach(value -> {
59
            Button tdButton = new Button(value.getLabel());
60
            addComponent(tdButton);
61
            typeDesignationButtons.add(new IdButton(value.getId(), tdButton));
62
            }) ;
63
        });
52
        if(regDto.getTypeDesignations() != null){
53
            regDto.getTypeDesignations().keySet().iterator().forEachRemaining(key -> {
54
                Label label = new Label(key   + ":");
55
                label.setWidthUndefined();
56
                addComponent(label);
57
                labels.add(label);
58

  
59
                regDto.getTypeDesignations().get(key).forEach(value -> {
60
                    Button tdButton = new Button(value.getLabel());
61
                    addComponent(tdButton);
62
                    typeDesignationButtons.add(new IdButton(value.getId(), tdButton));
63
                }) ;
64
            });
65
        }
64 66
        Button addTypeDesignationButton = new Button(FontAwesome.PLUS);
65 67
        addComponent(addTypeDesignationButton);
66 68

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)