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

NullPointerException on menu tap under certain circumstances #28

Closed
gsurrel opened this issue May 24, 2017 · 1 comment
Closed

NullPointerException on menu tap under certain circumstances #28

gsurrel opened this issue May 24, 2017 · 1 comment

Comments

@gsurrel
Copy link
Owner

gsurrel commented May 24, 2017

Maybe it's when the page hasn't been fully loaded yet.

java.lang.NullPointerException: 
  at android.net.Uri$StringUri.<init>(Uri.java:476)
  at android.net.Uri$StringUri.<init>(Uri.java:466)
  at android.net.Uri.parse(Uri.java:438)
  at org.surrel.facebooknotifications.MainActivity.onOptionsItemSelected(MainActivity.java:222)
  at android.app.Activity.onMenuItemSelected(Activity.java:3205)
  at com.android.internal.policy.PhoneWindow.onMenuItemSelected(PhoneWindow.java:1244)
  at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:801)
  at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:155)
  at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:954)
  at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:944)
  at android.widget.ActionMenuView.invokeItem(ActionMenuView.java:658)
  at com.android.internal.view.menu.ActionMenuItemView$1.run(ActionMenuItemView.java:250)
  at android.os.Handler.handleCallback(Handler.java:739)
  at android.os.Handler.dispatchMessage(Handler.java:95)
  at android.os.Looper.loop(Looper.java:158)
  at android.app.ActivityThread.main(ActivityThread.java:7230)
  at java.lang.reflect.Method.invoke(Native Method:0)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
@gsurrel
Copy link
Owner Author

gsurrel commented Jun 16, 2017

Probably linked to the logout action when the page is not loaded yet. Replace with clearing cookies and cache of the WebView instead.

@gsurrel gsurrel closed this as completed Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant