Source:
<code>void makeRenderingCommands() { for (GridColumn<?> column : model.getColumns()) { if (bodyColumns.contains(column) || floatingColumns.contains(column)) { if (column instanceof HasMultipleDOMElementResources) { ((HasMultipleDOMElementResources) column).initialiseResources(); } } else if (column instanceof HasDOMElementResources) { ((HasDOMElementResources) column).destroyResources(); } } if (this.bodyColumns.size() > 0) { drawHeader(renderingInformation); if (model.getRowCount() > 0) { drawBody(renderingInformation); } } final int minVisibleRowIndex = renderingInformation.getMinVisibleRowIndex(); final int maxVisibleRowIndex = renderingInformation.getMaxVisibleRowIndex(); final BaseGridRendererHelper.RenderingBlockInformation bodyBlockInformation = renderingInformation.getBodyBlockInformation(); final BaseGridRendererHelper.RenderingBlockInformation floatingBlockInformation = renderingInformation.getFloatingBlockInformation(); if (bodySelections != null) { addCommandToRenderQueue(bodySelections, renderSelectedRanges(bodyColumns, bodyBlockInformation.getX(), minVisibleRowIndex, maxVisibleRowIndex, bodyTransformer, renderingInformation)); } if (floatingBodySelections != null) { addCommandToRenderQueue(floatingBodySelections, renderSelectedRanges(floatingColumns, floatingBlockInformation.getX(), minVisibleRowIndex, maxVisibleRowIndex, floatingColumnsTransformer, renderingInformation)); } addCommandToRenderQueue(this, renderGridBoundary(renderingInformation)); if (isSelected) { assertSelectionWidget(); } <START> } <END></code><technical_language>Should't check bodySelections != null</technical_language>

Target:
private void makeRenderingCommands() { for (GridColumn<?> column : model.getColumns()) { if (bodyColumns.contains(column) || floatingColumns.contains(column)) { if (column instanceof HasMultipleDOMElementResources) { ((HasMultipleDOMElementResources) column).initialiseResources(); } } else if (column instanceof HasDOMElementResources) { ((HasDOMElementResources) column).destroyResources(); } } if (bodyColumns.size() > 0) { boundary = new Group(); drawHeader(renderingInformation); if (model.getRowCount() > 0) { drawBody(renderingInformation); } } final int minVisibleRowIndex = renderingInformation.getMinVisibleRowIndex(); final int maxVisibleRowIndex = renderingInformation.getMaxVisibleRowIndex(); final BaseGridRendererHelper.RenderingBlockInformation bodyBlockInformation = renderingInformation.getBodyBlockInformation(); final BaseGridRendererHelper.RenderingBlockInformation floatingBlockInformation = renderingInformation.getFloatingBlockInformation(); if (bodySelections != null) { addCommandToRenderQueue(bodySelections, renderSelectedRanges(bodyColumns, bodyBlockInformation.getX(), minVisibleRowIndex, maxVisibleRowIndex, bodyTransformer, renderingInformation)); } if (floatingBodySelections != null) { addCommandToRenderQueue(floatingBodySelections, renderSelectedRanges(floatingColumns, floatingBlockInformation.getX(), minVisibleRowIndex, maxVisibleRowIndex, floatingColumnsTransformer, renderingInformation)); } if (boundary != null) { addCommandToRenderQueue(boundary, renderGridBoundary(renderingInformation)); } if (isSelected) { assertSelectionWidget(); } }