HanSolo/charts

NPE - 17.1.51 - TimeAxis

Opened this issue · 1 comments

mores commented

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 ?

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