소스 검색

Added a null check to method 'setCellFocus' in grid.java in line with other checks that shortcircuit method(#20031)

Change-Id: I55e240980377d7ad94c06e2bf395acd95de32542
(cherry picked from commit 04eeee3d55)
tags/7.7.0.beta1^0
Dillion Bowman 7 년 전
부모
커밋
b2ee7ba254
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      client/src/main/java/com/vaadin/client/widgets/Grid.java

+ 2
- 1
client/src/main/java/com/vaadin/client/widgets/Grid.java 파일 보기

@@ -2526,7 +2526,8 @@ public class Grid<T> extends ResizeComposite implements
*/
private void setCellFocus(int rowIndex, int columnIndexDOM,
RowContainer container) {
if (rowIndex == rowWithFocus
if (container == null
|| rowIndex == rowWithFocus
&& cellFocusRange.contains(columnIndexDOM)
&& container == this.containerWithFocus) {
return;

Loading…
취소
저장