What could cause this error?

gurehbgui

I got a stacktrace on the google play developer console which looks like this:

java.lang.RuntimeException: Unable to start activity ComponentInfo{de.myapp.foo/de.myapp.foo.SecondActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
at android.app.ActivityThread.access$600(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at de.myapp.foo.SecondActivity.onCreate(SecondActivity.java:42)
at android.app.Activity.performCreate(Activity.java:4465)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
... 11 more

The problem is, that I only know that there was an error in my SecondActivity class. But what can I do to find out more about what was the exact reason?

keyboardsurfer

Take a look at line 42 of your SecondActivity as stated within the stacktrace:

de.myapp.foo.SecondActivity.onCreate(SecondActivity.java:42)

If you have made changes since the release and use a version control system, first checkout the corresponding release tag.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

What could be the cause of RejectedExecutionException

What could cause the Twitter card validator to give a redirect loop error?

What could cause "connect ETIMEDOUT" error when the URL is working in browser?

Azure: what could be the cause of the error "Unable to edit or replace deployment"?

What could be the cause for the MediaPipe installation error on Windows with Python 3.8.3?

What could cause this error: Uncaught TypeError: r.clamp is not a function?

What could cause a type error during the build process of Keras Layer?

What could cause a persistent error while uninstalling local packages?

Dotnet watcher - Illegal characters in path -- what could cause this error?

What could be the cause of this error? (Kotlin) (AndroidRuntime: FATAL EXCEPTION: main)

What could be the cause of this NullPointer Exception?

What cause the error?

What is the cause of this Attribute Error?

What could cause a "topology was destroyed" error when calling db.destroyDatabase with node.js mongodb native?

What could cause eslint-plugin-prettier to report error on CircleCI but be silent locally?

What could cause "Error evaluating Jacobian of equality constraints at user provided starting point" in pyomo.dae

What is the cause of this problem "IO Error: The Network Adapter could not establish the connection" on Sql Developer?

What could possibly cause a 404 error when the apparent url is correct in Wordpress?

What could be the cause of short flickering of screens

What could cause a Java ScheduleService to not run?

What could cause timers to flash in RecyclerView?

What could cause this difference in output in joda time?

What could cause the Math.tan to not work?

What could cause a Java TCP socket to close?

What could cause Vista machines to degrade in performance?

What could be the cause of a program crashing without notice?

What could cause Electron to not show any errors?

What is the server side issue that could cause the MethodNotAllowedHttpException

hMatrix breaks in a file, what could be the cause?