Project

General

Profile

« Previous | Next » 

Revision f4028415

Added by Patrick Plitzner almost 6 years ago

Fix potential NPE

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixToolbar.java
199 199
            @Override
200 200
            public void widgetSelected(SelectionEvent e) {
201 201
                matrix.getNatTable().doCommand(new DisplayPersistenceDialogCommand(matrix.getNatTable()));
202
                matrix.selectStateItem(comboStates, natTableState.get(PersistenceDialog.ACTIVE_VIEW_CONFIGURATION_KEY).toString());
202
                Object activeConfig = natTableState.get(PersistenceDialog.ACTIVE_VIEW_CONFIGURATION_KEY);
203
                if(activeConfig!=null){
204
                    matrix.selectStateItem(comboStates, activeConfig.toString());
205
                }
203 206
            }
204 207
        });
205 208

  

Also available in: Unified diff