diff -r 367c6ad5cf58 javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TableViewBehavior.java --- a/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TableViewBehavior.java Sat Aug 20 08:52:30 2011 +1000 +++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/behavior/TableViewBehavior.java Mon Aug 22 11:03:33 2011 +1000 @@ -523,6 +523,7 @@ if (fm == null) return; TablePosition focusedCell = fm.getFocusedCell(); + if (focusedCell == null || focusedCell.getTableColumn() == null) return; if (isShiftDown && anchor != null) { if (focusedCell.getColumn() > anchor.getColumn() && @@ -544,6 +545,7 @@ if (fm == null) return; TablePosition focusedCell = fm.getFocusedCell(); + if (focusedCell == null || focusedCell.getTableColumn() == null) return; if (isShiftDown && anchor != null) { if (focusedCell.getColumn() < anchor.getColumn() &&