--- old/modules/javafx.controls/src/main/java/javafx/scene/control/skin/ComboBoxListViewSkin.java 2017-11-15 12:06:43.330471000 +0530 +++ new/modules/javafx.controls/src/main/java/javafx/scene/control/skin/ComboBoxListViewSkin.java 2017-11-15 12:06:43.110361000 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -650,8 +650,10 @@ } return title; } - case SELECTION_START: return getEditor().getSelection().getStart(); - case SELECTION_END: return getEditor().getSelection().getEnd(); + case SELECTION_START: + return (getEditor() != null) ? getEditor().getSelection().getStart() : null; + case SELECTION_END: + return (getEditor() != null) ? getEditor().getSelection().getEnd() : null; default: return super.queryAccessibleAttribute(attribute, parameters); } }