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

Crash: showPostStatusSelector attempt to insert nil object from objects[4] #23191

Closed
sentry-io bot opened this issue May 10, 2024 · 3 comments
Closed

Crash: showPostStatusSelector attempt to insert nil object from objects[4] #23191

sentry-io bot opened this issue May 10, 2024 · 3 comments

Comments

@sentry-io
Copy link

sentry-io bot commented May 10, 2024

Sentry Issue: WORDPRESS-IOS-2R6R

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
...
(19 additional frame(s) were not displayed)
@dangermattic
Copy link
Collaborator

dangermattic commented May 10, 2024

Thanks for reporting! 👍

@dvdchr dvdchr changed the title NSInvalidArgumentException: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object fro... Crash: showPostStatusSelector attempt to insert nil object from objects[4] May 10, 2024
@dvdchr
Copy link
Contributor

dvdchr commented May 10, 2024

The crash occurrence is relatively small at 6 occurrences for version 24.7 so far. Assigning a medium priority.

Looks like it's crashing here:

NSDictionary *statusDict = @{
@"DefaultValue": [self.apost availableStatusForPublishOrScheduled],
@"Title" : NSLocalizedString(@"Status", nil),
@"Titles" : titles,
@"Values" : statuses,
@"CurrentValue" : self.apost.status
};

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

@dvdchr
Copy link
Contributor

dvdchr commented May 10, 2024

Closing this as a duplicate of #22937.

@dvdchr dvdchr closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants