weixin_39918128 2020-11-20 18:07
浏览 0

NullPointerException on horizontal scrolling after changing Grid in SpreadsheetView

Original report by Patricia Déchandol (Bitbucket: pdechandol, GitHub: Unknown).

Hello,

I face a problem with SpreadsheetView. I need to update the rows of the spreadsheet, so as indicated in other post I change the Grid after calculating it. My table contains cells with checkboxes. The problem appear when I scroll horizontally after changing the Grid. A NullPointerException is raised :


#!java

Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
    at com.sun.javafx.scene.control.skin.LabeledSkinBase$1.invalidated(Unknown Source)
    at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(Unknown Source)
    at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
    at javafx.scene.Node$LazyBoundsProperty.invalidate(Unknown Source)
    at javafx.scene.Node.impl_layoutBoundsChanged(Unknown Source)
    at javafx.scene.layout.Region.widthChanged(Unknown Source)
    at javafx.scene.layout.Region.access$1800(Unknown Source)
    at javafx.scene.layout.Region$8.invalidated(Unknown Source)
    at javafx.beans.property.DoublePropertyBase.markInvalid(Unknown Source)
    at javafx.beans.property.DoublePropertyBase.set(Unknown Source)
    at javafx.scene.layout.Region.setWidth(Unknown Source)
    at javafx.scene.layout.Region.resize(Unknown Source)
    at com.sun.javafx.scene.control.skin.LabeledSkinBase.layoutLabelInArea(Unknown Source)
    at com.sun.javafx.scene.control.skin.LabeledSkinBase.layoutLabelInArea(Unknown Source)
    at com.sun.javafx.scene.control.skin.TableCellSkinBase.layoutChildren(Unknown Source)
    at impl.org.controlsfx.spreadsheet.CellViewSkin.layoutChildren(CellViewSkin.java:78)
    at javafx.scene.control.Control.layoutChildren(Unknown Source)
    at javafx.scene.control.TableCell.layoutChildren(Unknown Source)
    at javafx.scene.Parent.layout(Unknown Source)

I really need to do this. Is there a fix or do you plan to fix it ?

Thanks Patricia

该提问来源于开源项目:controlsfx/controlsfx

  • 写回答

6条回答 默认 最新

  • weixin_39918128 2020-11-20 18:07
    关注

    Original comment by Patricia Déchandol (Bitbucket: pdechandol, GitHub: Unknown).

    with last version on date of 31/07/2014

    评论

报告相同问题?