java.lang.RuntimeException: Unable to start activity ComponentInfo{hr.oglasnik.perhpethua.oo/hr.oglasnik.perhpethua.oo.SubCategory}: java.lang.NullPointerException

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

via Stack Overflow by Perhpethua
, 1 year ago
Unable to start activity ComponentInfo{hr.oglasnik.perhpethua.oo/hr.oglasnik.perhpethua.oo.SubCategory}: java.lang.NullPointerException
via GitHub by brianmuse
, 2 years ago
Unable to start activity ComponentInfo{...}: java.lang.NullPointerException
via GitHub by nathantsoi
, 2 years ago
Unable to start activity ComponentInfo{com.mopub.mobileads.MoPubActivity}: java.lang.NullPointerException
via Stack Overflow by gregor
, 2 years ago
Unable to start activity ComponentInfo{......}: java.lang.NullPointerException
via Stack Overflow by juniorDev
, 2 years ago
Unable to start activity ComponentInfo{com.main.MainActivity}: java.lang.NullPointerException
via Stack Overflow by csf
, 2 years ago
Unable to start activity ComponentInfo{br.com.myapp.Search}: java.lang.NullPointerException
java.lang.RuntimeException: Unable to start activity ComponentInfo{hr.oglasnik.perhpethua.oo/hr.oglasnik.perhpethua.oo.SubCategory}: java.lang.NullPointerException
at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:116)
at org.json.JSONTokener.nextValue(JSONTokener.java:94)
at org.json.JSONArray.(JSONArray.java:92)
at org.json.JSONArray.(JSONArray.java:108)
at hr.oglasnik.perhpethua.oo.SubCategory.onCreate(SubCategory.java:69)
at android.app.Activity.performCreate(Activity.java:5312)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2395)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)
at android.app.ActivityThread.access$800(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5633)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:896)

Users with the same issue

Once, 1 year ago
5 times, 1 year ago
40 times, 2 months ago
3 times, 2 months ago
25 times, 4 months ago
30 more bugmates

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