Project

General

Profile

« Previous | Next » 

Revision 5bdd89de

Added by Andreas Müller about 3 years ago

fix #9644 fix NPE in term selection

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/wizard/CheckBoxTreeComposite.java
106 106

  
107 107
                }else{
108 108
                    int index = 0;
109
                    for (Object o:checkedElements){
110
                        if (o != null && o.equals(item.getData())){
111
                            break;
109
                    if (checkedElements != null){
110
                        for (Object o:checkedElements){
111
                            if (o != null && o.equals(item.getData())){
112
                                break;
113
                            }
114
                            index ++;
112 115
                        }
113
                        index ++;
114

  
116
                        checkedElements[index] = null;
115 117
                    }
116
                    checkedElements[index] = null;
117 118
                }
118 119

  
119 120
                updateItem(item);

Also available in: Unified diff