HanSolo / charts

A JavaFX library that contains different kind of charts
Apache License 2.0
660 stars 83 forks source link

NPE - 17.1.51 - TimeAxis #115

Open mores opened 11 months ago

mores commented 11 months ago

I am trying to run: https://github.com/HanSolo/charts/blob/master/src/test/java/eu/hansolo/fx/charts/TimeAxisTest.java with version 17.1.51

java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1 (LauncherImpl.java:893)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2 (LauncherImpl.java:195)
    at java.lang.Thread.run (Thread.java:833)
Caused by: java.lang.NullPointerException: Cannot invoke "eu.hansolo.toolboxfx.geom.Bounds.set(double, double, double, double)" because "this.axisBounds" is null
    at eu.hansolo.fx.charts.Axis.initGraphics (Axis.java:335)
    at eu.hansolo.fx.charts.Axis.<init> (Axis.java:313)
    at eu.hansolo.fx.charts.Axis.<init> (Axis.java:257)
    at org.openjfx.App.createBottomTimeAxis (App.java:219)

But if I clone and build master branch - it works fine.

Can you update TimeAxisTest to run with the current version ?

HanSolo commented 11 months ago

Will take a look at it, thx for reporting 👍🏻