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

[PLAT-5965] Fix analyzer warning in BugsnagClient.m #994

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

nickdowell
Copy link
Contributor

Goal

Addresses an analyzer warning reported in #989

Changeset

-orientationChanged: was being called with a nil notification, causing a nil message to be passed to addAutoBreadcrumbOfType:...

The purpose of that call to -orientationChanged: was to ensure the state metadata would contain the initial orientation, this logic has now been moved to -initWithConfiguration:

Testing

Was able to reproduce when running the analyzer with a simulator target as show in #989, and confirm there is no longer a warning.

@github-actions
Copy link

github-actions bot commented Feb 8, 2021

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size did not change - 1,060,400 bytes

Generated by 🚫 Danger

@nickdowell nickdowell force-pushed the nickdowell/fix-analyzer-warning branch from 32c19fd to 48a2b6b Compare February 8, 2021 15:06
@nickdowell nickdowell force-pushed the nickdowell/fix-analyzer-warning branch from 48a2b6b to f4c4fc8 Compare February 8, 2021 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants