java.lang.IllegalArgumentException: n <= 0: 0

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.IllegalArgumentException: n <= 0: 0
at java.util.Random.nextInt(
at com.example.postcards.MainActivity$
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(

Users with the same issue

3 times, 5 months ago
31 times, 10 months ago
60 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
12 times, 1 year ago
4 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.