Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException in Level 1 #12

Open
yakout opened this issue Jan 27, 2017 · 0 comments
Open

java.lang.IllegalArgumentException in Level 1 #12

yakout opened this issue Jan 27, 2017 · 0 comments
Assignees
Labels

Comments

@yakout
Copy link
Owner

yakout commented Jan 27, 2017

There is problem when starting level one this exception is thrown:

Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: bound must be greater than origin
	at java.util.concurrent.ThreadLocalRandom.nextInt(ThreadLocalRandom.java:379)
	at models.shapes.util.ShapeFactory.getRandomShapeIdentifier(ShapeFactory.java:43)
	at models.shapes.util.ShapePool.getShape(ShapePool.java:21)
	at controllers.shape.ShapeGenerator$1$1.run(ShapeGenerator.java:59)
	at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)

Note: all other levels are working perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants