HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
688 stars 129 forks source link

NullPointer Exception in LcdSkin.redraw - PrismTextLayout.java:969 #125

Closed WolfgangFahl closed 7 years ago

WolfgangFahl commented 7 years ago
Exception in thread "JavaFX Application Thread" Exception in thread "Thread-6" java.lang.NullPointerException
        at com.sun.javafx.text.PrismTextLayout.reuseRuns(PrismTextLayout.java:969)
        at com.sun.javafx.text.PrismTextLayout.layout(PrismTextLayout.java:1019)
        at com.sun.javafx.text.PrismTextLayout.ensureLayout(PrismTextLayout.java:223)
        at com.sun.javafx.text.PrismTextLayout.getBounds(PrismTextLayout.java:246)
        at javafx.scene.text.Text.getLogicalBounds(Text.java:358)
        at javafx.scene.text.Text.impl_computeLayoutBounds(Text.java:1115)
        at javafx.scene.Node$12.computeBounds(Node.java:3223)
        at javafx.scene.Node$LazyBoundsProperty.get(Node.java:9306)
        at javafx.scene.Node$LazyBoundsProperty.get(Node.java:9276)
        at javafx.scene.Node.getLayoutBounds(Node.java:3238)
        at eu.hansolo.medusa.skins.LcdSkin.updateBackgroundText(LcdSkin.java:464)
        at eu.hansolo.medusa.skins.LcdSkin.redraw(LcdSkin.java:691)
        at eu.hansolo.medusa.skins.LcdSkin.handleEvents(LcdSkin.java:256)
        at eu.hansolo.medusa.skins.LcdSkin.lambda$new$0(LcdSkin.java:138)
        at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:136)
        at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
        at javafx.beans.property.DoublePropertyBase.fireValueChangedEvent(DoublePropertyBase.java:106)
        at javafx.beans.property.DoublePropertyBase.markInvalid(DoublePropertyBase.java:113)
        at javafx.beans.property.DoublePropertyBase.set(DoublePropertyBase.java:147)
        at eu.hansolo.medusa.Gauge$2.set(Gauge.java:481)
HanSolo commented 7 years ago

without a procedure on how to reproduce this bug, this description is useless.