WordPress-iOS icon indicating copy to clipboard operation
WordPress-iOS copied to clipboard

NSInvalidArgumentException: PostSettingsViewController showPostStatusSelector

Open sentry[bot] opened this issue 1 year ago • 1 comments

Sentry Issue: JETPACK-IOS-D5

NSInvalidArgumentException: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[4]
  File "PostSettingsViewController.m", line 1066, in -[PostSettingsViewController showPostStatusSelector]
  File "PostSettingsViewController.m", line 600, in -[PostSettingsViewController tableView:didSelectRowAtIndexPath:]
  File "main.swift", line 7, in main
...
(22 additional frame(s) were not displayed)

sentry[bot] avatar Apr 02 '24 09:04 sentry[bot]

Thanks for reporting! 👍

dangermattic avatar Apr 02 '24 09:04 dangermattic

The crash occurrence is relatively small at 6 occurrences for version 24.7 so far.

Looks like it's crashing here:

https://github.com/wordpress-mobile/WordPress-iOS/blob/b3f0327371e118cadb14c38f9dcdf8a8d63506e9/WordPress/Classes/ViewRelated/Post/PostSettingsViewController.m#L1066-L1072

Based on the exception message attempt to insert nil object from objects[4], it seems this crashed because self.apost.status is nil.

dvdchr avatar May 10 '24 19:05 dvdchr

Sentry Issue: WORDPRESS-IOS-2R6R

sentry[bot] avatar May 10 '24 19:05 sentry[bot]

PostSettingsRowStatus is no longer displayed in 24.9 – good to close.

kean avatar May 10 '24 19:05 kean

I marked the WP and JP Sentry issues resolved in 24.9 to show these have been resolved on the Sentry Alerts issue list.

guarani avatar May 27 '24 22:05 guarani