fix NPE in checklist editor
authorKatja Luther <k.luther@bgbm.org>
Tue, 7 Jun 2016 08:10:08 +0000 (10:10 +0200)
committerKatja Luther <k.luther@bgbm.org>
Tue, 7 Jun 2016 08:10:08 +0000 (10:10 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/ChecklistEditor.java

index cdecde04a0e8e248afbcace4e134729bc470c3e0..7cdb3ea6ebbe7631109c7b3d08f11b37d1f72700 100644 (file)
@@ -358,7 +358,7 @@ public class ChecklistEditor extends EditorPart implements ISelectionListener, I
                /** uncommented it for now because no rank editing is wanted **/
 //                column.setEditingSupport(new RankEditingSupport(viewer, this));
             }
-            if (columnIndex >= 3) {
+            if (columnIndex >= 4) {
                 //read PrefrenceStore to setWidth according to last saved state
                 if(restoreValuesForColumnWidth.get(columnIndex)){
                     column.getColumn().setWidth(100);