Guest User

Untitled

a guest
Nov 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. Platform.runLater(new Runnable() {
  2. @Override public void run() {
  3. Controller instance2 = new Controller();
  4. instance2.startonpause();
  5. }
  6. });
  7.  
  8. public void startonpause() {
  9. startonpause.setText("123");
  10. }
  11.  
  12. Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
  13. at sample.Controller$4.run(Controller.java:302)
  14. at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
  15. at java.security.AccessController.doPrivileged(Native Method)
  16. at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
  17. at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
  18. at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
  19. at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
  20. at java.lang.Thread.run(Thread.java:748)
Add Comment
Please, Sign In to add comment