java.lang.NullPointerException: This exception has no message.

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 Abdul.Moqueet
, 1 year ago
This exception has no message.
java.lang.NullPointerException:
at com.abdul.moqueet.unitconverter.MainFragment$1$1.afterTextChanged(MainFragment.java:141)
at android.widget.TextView.sendAfterTextChanged(TextView.java:7247)
at android.widget.TextView$ChangeWatcher.afterTextChanged(TextView.java:8891)
at android.text.SpannableStringBuilder.sendAfterTextChanged(SpannableStringBuilder.java:970)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:497)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:435)
at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:30)
at android.text.method.NumberKeyListener.onKeyDown(NumberKeyListener.java:121)
at android.widget.TextView.doKeyDown(TextView.java:5385)
at android.widget.TextView.onKeyDown(TextView.java:5204)
at android.view.KeyEvent.dispatch(KeyEvent.java:2609)
at android.view.View.dispatchKeyEvent(View.java:7205)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1359)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1359)
at android.widget.ScrollView.dispatchKeyEvent(ScrollView.java:353)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1359)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1359)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1359)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1359)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1359)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1359)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1359)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1920)
at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:524)
at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:50)
at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:241)
at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3701)
at android.view.ViewRootImpl.deliverKeyEvent(ViewRootImpl.java:3626)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3161)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4292)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4271)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:2976)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
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:793)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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