changeset 2242:5801a67086d9

RT-24605: RT-23769 introduces possibility of NPEs being thrown
author jgiles
date Tue, 15 Jan 2013 15:55:20 +1300
parents 13034e263b1e
children 15404b7ea44b
files javafx-ui-controls/src/javafx/scene/control/TablePositionBase.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/javafx/scene/control/TablePositionBase.java	Tue Jan 15 15:21:29 2013 +1300
+++ b/javafx-ui-controls/src/javafx/scene/control/TablePositionBase.java	Tue Jan 15 15:55:20 2013 +1300
@@ -139,7 +139,8 @@
     @Override public int hashCode() {
         int hash = 5;
         hash = 79 * hash + this.row;
-        hash = 79 * hash + (getTableColumn() != null ? getTableColumn().hashCode() : 0);
+        TableColumnBase tableColumn = getTableColumn();
+        hash = 79 * hash + (tableColumn != null ? tableColumn.hashCode() : 0); 
         return hash;
     }
 }