Project

General

Profile

Revision 84f5eea0

ID84f5eea00ea16f2c1fcf33b68f9053535d027d8c
Parent f53701cb
Child 96e2a5dc

Added by Katja Luther about 2 years ago

ref #7063: fix NPE in distribution editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/ChecklistEditorE4.java
419 419
                        } else{
420 420
                            titles.add(term.getTitleCache());
421 421
                        }
422
                    }{
423
                        titles.add(term.getTitleCache());
424 422
                    }
425 423
                    bounds.add(200);
426 424
                    columnIndex++;
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionEditorHelper.java
73 73
          for (DescriptionElementBase deb : td.getElements()) {
74 74
              if (deb instanceof Distribution) {
75 75
                  Distribution distribution = (Distribution) deb;
76
                  if (distribution.getArea().getUuid().equals(areaUuid)){
76
                  if (distribution != null && distribution.getArea() != null && distribution.getArea().getUuid().equals(areaUuid)){
77 77
                      return distribution;
78 78
                  }
79 79
              }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)