JavaFX 8 ColorPicker NullPointerException

JavaFX 8 ColorPicker NullPointerException,java,input,nullpointerexception,javafx-8,color-picker,Java,Input,Nullpointerexception,Javafx 8,Color Picker,此代码: package colorpickertest; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.ColorPicker; import javafx.scene.layout.Pane; import javafx.scene.paint.Color; import javafx.stage.Stage; public class Color

此代码:

package colorpickertest;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.ColorPicker;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;

public class ColorPickerTest extends Application {

    @Override
    public void start(Stage stage) throws Exception {
        Pane root = new Pane();
        Scene scene = new Scene(root, 640, 480, Color.BLACK);
        root.getChildren().add(new ColorPicker());

        stage.setTitle("ColorPickerTest");
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }

}
有时在拾取某些较浅颜色时重复出现此错误:

Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
    at com.sun.glass.ui.TouchInputSupport.notifyBeginTouchEvent(TouchInputSupport.java:82)
    at com.sun.glass.ui.mac.MacTouchInputSupport.notifyNextTouchEvent(MacTouchInputSupport.java:128)
    at com.sun.glass.ui.mac.MacGestureSupport.notifyNextTouchEvent(MacGestureSupport.java:77)
我做错了什么?谢谢
StackOverflow正在让我添加更多细节,但这是我所能提供的全部。

您好,我尝试了此操作,但无法重现此行为。您使用的JavaFX 8版本是System.out.printlncom.sun.JavaFX.runtime.VersionInfo.getRuntimeVersion;检查;我目前使用的是8.0.0-B132这个stacktrace看起来像是一个操作系统特有的东西,还没有被修复。我在windows上,有ArrayIndexOutOfBoundsException。我的版本是8.0.20-ea-b05。你是说你确实用相同的代码出错了吗?我在Mac电脑上。是的,我复制了它,得到了一个ArrayIndexOutOfBoundException——但前提是我把鼠标拖到选择器上。由于几乎没有其他人遇到同样的问题,我只想抓住它,看看它是否在即将发布的JFX版本中得到了修复