java.lang.NumberFormatException: Invalid int: "null"

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

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.

Solutions on the web

java.lang.NumberFormatException: Invalid int: "null"
at java.lang.Integer.invalidInt(Integer.java:11)
at java.lang.Integer.parseInt(Integer.java:358)
at java.lang.Integer.parseInt(Integer.java)
at android.net.Network.(Network.java)
at java.lang.Class.classForName(Class.java)
at java.lang.Class.forName(Class.java:309)
at java.lang.Class.forName(Class.java:273)
at okhttp3.internal.platform.AndroidPlatform.buildIfSupported(SourceFile:184)
at okhttp3.internal.platform.Platform.findPlatform(SourceFile:152)
at okhttp3.internal.platform.Platform.(SourceFile)
at okhttp3.internal.tls.CertificateChainCleaner.get(SourceFile:41)
at okhttp3.OkHttpClient.(SourceFile)
at okhttp3.OkHttpClient.(SourceFile)

Users with the same issue

23 times, 2 months ago
Once, 2 months ago
3 times, 11 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
186 more bugmates

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