java.lang.IllegalArgumentException

n <= 0: -10


Solutions on the web3616

Solution icon of stackoverflow
n <= 0: -10

Solution icon of stackoverflow
via Stack Overflow by Rich C
, 1 year ago
n <= 0: 0

Solution icon of github
via GitHub by SquallATF
, 7 months ago
n <= 0: 0

Solution icon of stackoverflow
via Stack Overflow by Unknown author, 1 year ago
n <= 0: 0

Solution icon of stackoverflow
n <= 0: 0

Solution icon of github
n <= 0: 0

Solution icon of stackoverflow
via Stack Overflow by Unknown author, 1 year ago
n <= 0: 0

Solution icon of stackoverflow
n <= 0: 0

Stack trace

  • java.lang.IllegalArgumentException: n <= 0: -10 at java.util.Random.nextInt(Random.java:182) at com.dunomade.ecraseurdetaupe.PlacementPerso.aPlacer(PlacementPerso.java:27) at com.dunomade.ecraseurdetaupe.GenerateurPartie$1$1.run(GenerateurPartie.java:56) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:5728) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

3 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
31 times, 7 months ago
12 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 more bugmates