wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.94k stars 1.31k forks source link

NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a... #20881

Open sentry-io[bot] opened 1 month ago

sentry-io[bot] commented 1 month ago

Sentry Issue: JETPACK-ANDROID-RW0

NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
    at org.wordpress.android.ui.reader.ReaderActivityLauncher.buildShowReaderCommentsIntent(ReaderActivityLauncher.java:274)
    Intent intent = new Intent(
    at org.wordpress.android.ui.reader.ReaderActivityLauncher.showReaderComments(ReaderActivityLauncher.java:237)
    Intent intent = buildShowReaderCommentsIntent(
    at org.wordpress.android.ui.reader.ReaderActivityLauncher.showReaderComments(ReaderActivityLauncher.java:214)
    showReaderComments(
    at org.wordpress.android.ui.notifications.NotificationsListFragmentPage$handleNoteClick$1.invoke(NotificationsListFragmentPage.kt:228)
    ReaderActivityLauncher.showReaderComments(
    at org.wordpress.android.ui.notifications.NotificationsListFragmentPage$handleNoteClick$1.invoke(NotificationsListFragmentPage.kt:225)
    viewModel.openNote(
...
(8 additional frame(s) were not displayed)
dangermattic commented 1 month ago

Thanks for reporting! 👍

notandyvee commented 1 month ago

Just a heads up @aditi-bhatia it appears this is a separate crash, but seems related to the one you are working on. Just letting you know so you can maybe close this one too.