Project

General

Profile

« Previous | Next » 

Revision dc5f8fd7

Added by Katja Luther over 6 years ago

avoid NPE when no new buttons in selection dialog

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/AbstractFilteredCdmResourceSelectionDialog.java
445 445
	    space.setLayoutData(gridData);
446 446
	    GridLayout gridLayout = new GridLayout();
447 447
	    gridLayout.makeColumnsEqualWidth= false;
448
	    gridLayout.numColumns=newButtonText.length+2;
448
	    if (newButtonText != null){
449
	    	gridLayout.numColumns=newButtonText.length+2;
450
	    }else{
451
	    	gridLayout.numColumns=2;
452
	    }
449 453
	    parent.setLayout(gridLayout);
450 454
    
451 455
        super.createButtonsForButtonBar(parent);

Also available in: Unified diff