wordpress-mobile / WordPress-Android

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

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

Open sentry-io[bot] opened 6 months ago

sentry-io[bot] commented 6 months 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 6 months ago

Thanks for reporting! 👍

notandyvee commented 6 months 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.