java.lang.NumberFormatException: null


Samebug tips

You try to parse a String that contains non-numeric characters to an int. The string must contain decimal characters only, optionally beginning with a + or - sign.


1 month ago

Solutions on the web

Solution icon of stackoverflow
null

Solution icon of coderanch
via Coderanch by Wayne Burr, 10 months ago
null

Solution icon of coderanch
via Coderanch by shelly sharma, 10 months ago
null

Solution icon of coderanch
via Coderanch by Dave Hayward, 10 months ago
null

Solution icon of coderanch
via Coderanch by anvi kon, 1 year ago
null

Solution icon of coderanch
via Coderanch by Dj Galla, 1 year ago
null

Solution icon of icesoft
null

Solution icon of bugzilla
via Eclipse Bugzilla by dgolovin, 1 year ago
null

Solution icon of bugzilla
via Eclipse Bugzilla by jared_burns, 1 year ago
null

Solution icon of bugzilla
via https://bugzilla.redhat.com/bugzilla/ by Ondřej Žižka, 1 year ago
null

Stack trace

java.lang.NumberFormatException: null
	at java.lang.Integer.parseInt(Integer.java:542)
	at java.lang.Integer.parseInt(Integer.java:615)
	at Subscribers.main(Subscribers.java:25)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

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

2 times, 2 weeks ago
2 times, 1 month ago
5 times, 3 months ago
Once, 4 months ago
2 times, 5 months ago
173 more bugmates