NSInvalidArgumentException: PostSettingsViewController showPostStatusSelector
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)
Thanks for reporting! 👍
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.
Sentry Issue: WORDPRESS-IOS-2R6R
PostSettingsRowStatus is no longer displayed in 24.9 – good to close.
I marked the WP and JP Sentry issues resolved in 24.9 to show these have been resolved on the Sentry Alerts issue list.