Hi ULC Team & Daniel (Grob)

 

When running against ULC 6.0.4, the EagerLoadingHandler community contribution has 2 bugs, triggering exceptions at startup time in our application.

 

Correct would be:

 

private static int[] getRendererColumns()/getEditorColumns()/getHeaderColumns() {

        int[] tmpResult = new int[table.getColumnCount()];

        int tmpCount = 0;

        for (int i = 0; i < table.getColumnCount(); i++) {

            ULCTableColumn column = table.getColumnModel().getColumn(i);

            if (column.getCellEditor() != null ||

                table.getDefaultEditor(table.getColumnClass(column.getModelIndex())) != null) { // used to be i

                tmpResult[tmpCount] = table.getColumnModel().getColumn(i).getId(); // used to be i;

                tmpCount++;

            }

        }

 

        int[] result = new int[tmpCount];

        System.arraycopy(tmpResult, 0, result, 0, result.length);

        return result;

    }

 

Just to let you (and other developers) know.

 

Thanks for the contribution.

 

Regards, Etienne

 

Reply via email to