Commit 0fe0bd4
committed
Add null-check to AbstractTableViewer and AbstractTreeViewer
Check for null before using the result of getViewerColumn(int). The
JavaDoc explicitly says that the method may return null and other places
in the code are already checking for null.1 parent 4f7b636 commit 0fe0bd4
File tree
2 files changed
+8
-4
lines changed- bundles/org.eclipse.jface/src/org/eclipse/jface/viewers
2 files changed
+8
-4
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
391 | 390 | | |
392 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
393 | 395 | | |
394 | 396 | | |
395 | 397 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
997 | | - | |
998 | 997 | | |
999 | | - | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
1000 | 1002 | | |
1001 | 1003 | | |
1002 | 1004 | | |
| |||
0 commit comments