Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointer on onFocusChangeListener #20

Open
guilhermesgb opened this issue Nov 10, 2015 · 0 comments
Open

NullPointer on onFocusChangeListener #20

guilhermesgb opened this issue Nov 10, 2015 · 0 comments
Labels

Comments

@guilhermesgb
Copy link
Owner

Fix this problem asap by being more careful before invoking that external listener as they may have been nulled.

Stacktrace:

11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: FATAL EXCEPTION: main 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: Process: br.com.coddy.oviajante.guia, PID: 9525 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.View$OnFocusChangeListener.onFocusChange(android.view.View, boolean)' on a null object reference 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at com.github.guilhermesgb.marqueeto.LabelledMarqueeEditText$DisableEditModeOnFocusChangeListener.onFocusChange(LabelledMarqueeEditText.java:517) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.View.onFocusChanged(View.java:5206) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.widget.TextView.onFocusChanged(TextView.java:7913) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.View.handleFocusGainInternal(View.java:4962) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.View.requestFocusNoSearch(View.java:7678) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.View.requestFocus(View.java:7657) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.widget.ScrollView.onRequestFocusInDescendants(ScrollView.java:1467) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.requestFocus(ViewGroup.java:2603) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2644) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.requestFocus(ViewGroup.java:2600) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2644) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.requestFocus(ViewGroup.java:2600) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2644) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.requestFocus(ViewGroup.java:2600) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2644) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.requestFocus(ViewGroup.java:2600) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2644) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewGroup.requestFocus(ViewGroup.java:2603) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.View.requestFocus(View.java:7624) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1927) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:580) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:550) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5257) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 11-10 16:49:26.682 9525-9525/br.com.coddy.oviajante.guia E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant