B4J Question java.lang.NullPointerException with Mediaplayer

Olivier Zeegers

Active Member
Licensed User
Does anyone have a clue why I get this error now and then ?

I play a video with MediaPlayer object with property CycleCount = -1

java.lang.NullPointerException
at anywheresoftware.b4j.objects.MediaPlayerWrapper$2.run(MediaPlayerWrapper.java:45)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
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.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Thread.java:748)
 
Top