scenebuilder icon indicating copy to clipboard operation
scenebuilder copied to clipboard

Duplicating a table column crashes SceneBuilder

Open ghost opened this issue 4 years ago • 7 comments

To replicate: create a new scene, add an anchor pane, add a tableview, right-click the column in the tableview, select duplicate, then crash.

ghost avatar Apr 16 '20 21:04 ghost

Note: This only seems to crash SceneBuilder when launched from IntelliJ IDEA (Ultimate in my case, Community untested). However, it seems that an NPE might be thrown regardless of how SceneBuilder was launched, but that it does not cause a crash when launched independently from IntelliJ.

nylanderdev avatar Jun 15 '20 01:06 nylanderdev

To encircle the possible error I attempted to reproduce the error. As of now, I was not able to successfully reproduce the issue. Could you pleas provide more boundary conditiosn?

Which Java version? Which SceneBuilder version? Was it the SceneBuilder provided by IDEA or was the SceneBuilder separately provided and configured in Idea accordingly? Is it possible to reproduce using a provided FXML file?

Tested with:

Version OS Package Java Runtime Observation
8.5 Windows 10 Standalone 1.8.0_171-b11, Oracle Corporation works, no crash
15.0.1 Windows 10 MSI Installer 15.0.2+7, AdoptOpenJDK works, no crash
11 Windows 10 IntelliJ 2020.1 Ultimate, 201.6668.121 11.0.6+8-b765.25 amd64, JetBrains works, no crash

Oliver-Loeffler avatar Jan 28 '21 00:01 Oliver-Loeffler

Hi,

I managed to reproduce it by launching scene builder from IntelliJ coummunity edition 2020.2

Product Version JavaFX Scene Builder 11.0.0

Build Information Version 11.0.0 Date: 2019-03-19 Java Version: 11.0.1+13-LTS, Oracle Corporation

Java 11.0.1+13-LTS, Oracle Corporation

Operating System Linux, amd64, 5.9.13-100.fc32.x86_64

Copyright (c) 2015-2018, Gluon.

m-i-k-e-e avatar Mar 02 '21 21:03 m-i-k-e-e

Is the issue solved? This problem is reproduced here. BTW, I am using NetBeans and still this occured.

ajinzrathod avatar Mar 08 '21 12:03 ajinzrathod

Well, If it reproduces in Linux, I will also try again and also try to catch the thing with the debugger.

Oliver-Loeffler avatar Mar 08 '21 19:03 Oliver-Loeffler

Reproduced on Windows 10 with latest SB build:

java.lang.NullPointerException: Cannot invoke "javafx.scene.control.TableView.getSkin()" because the return value of "javafx.scene.control.TableColumn.getTableView()" is null
	at javafx.scene.control.TableColumn.getStyleableNode(TableColumn.java:646)
	at com.oracle.javafx.scenebuilder.kit.util.CssInternal.getCssInfo(CssInternal.java:304)
	at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.setEditorValueFromSelection(InspectorPanelController.java:1306)
	at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.setEditorValueFromSelection(InspectorPanelController.java:1252)
	at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.reset(InspectorPanelController.java:624)
	at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.updateInspector(InspectorPanelController.java:541)
	at com.oracle.javafx.scenebuilder.kit.editor.panel.inspector.InspectorPanelController.editorSelectionDidChange(InspectorPanelController.java:463)
	at com.oracle.javafx.scenebuilder.kit.editor.panel.util.AbstractPanelController.lambda$new$5(AbstractPanelController.java:232)

Looks like when the column is duplicated, the table view is not added to it.

AlmasB avatar Jan 21 '22 14:01 AlmasB

I cannot duplicate this using Scene Builder 19 on macOS 12.0.1.

Oliver-Loeffler avatar Oct 09 '22 22:10 Oliver-Loeffler