java.lang.NullPointerException while running FXGraphics2DDem

A discussion forum for FXGraphics2D (adds a Java2D API to the JavaFX Canvas).

java.lang.NullPointerException while running FXGraphics2DDem

Postby akardapolov » Sat Feb 20, 2016 12:01 pm

Hi!

NPE in IDEA when running FXGraphics2DDemo1.
Java 8 upd. 73 (build 1.8.0_73-b02)
com.intellij.rt.execution.application.AppMain org.jfree.fx.demo.FXGraphics2DDemo1
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:894)
at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:158)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NullPointerException
at org.jfree.fx.FXGraphics2D.<init>(FXGraphics2D.java:191)
at org.jfree.fx.demo.FXGraphics2DDemo1$ChartCanvas.<init>(FXGraphics2DDemo1.java:82)
at org.jfree.fx.demo.FXGraphics2DDemo1.start(FXGraphics2DDemo1.java:472)
at com.sun.javafx.application.LauncherImpl$8.run(LauncherImpl.java:837)
at com.sun.javafx.application.PlatformImpl$7.run(PlatformImpl.java:335)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:301)
at com.sun.javafx.application.PlatformImpl$6$1.run(PlatformImpl.java:298)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:298)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
... 1 more

Process finished with exit code 1


Thanks,
Alex.
akardapolov
 
Posts: 1
Joined: Sat Feb 20, 2016 11:04 am

Re: java.lang.NullPointerException while running FXGraphics2

Postby david.gilbert » Sat Feb 20, 2016 3:19 pm

Thanks for the report. I presume you are running the latest code from GitHub? I see the same issue, and fixed it just now.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11653
Joined: Fri Mar 14, 2003 10:29 am


Return to FXGraphics2D

Who is online

Users browsing this forum: No registered users and 1 guest

cron