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

fix(issue): Fix crash due to undefined navigation params #658

Merged
merged 1 commit into from
Dec 10, 2017

Conversation

chinesedfan
Copy link
Member

Question Response
Version? v1.4.0
Devices tested? iPhone 6, iOS 11.0 simulator
Bug fix? yes
New feature? no
Includes tests? no
All Tests pass? yes
Related ticket? #201

Description

From #332, we can learn that this.props.navigation.state.params.issue is not available when visiting from notifications. The safer variable is this.props.issue.

By scanning similar codes, I found another crash and fixed. If visiting an issue without push permissions, you can invoke an action sheet from the top right corner and select Open in Browser, then the app will also crash.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 39.861% when pulling 01da937 on chinesedfan:fix_201 into 14532ce on gitpoint:master.

Copy link
Member

@machour machour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validated on Android Nexus 5 & iPhone 7 (both simulators)

Copy link
Member

@housseindjirdeh housseindjirdeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

@housseindjirdeh housseindjirdeh merged commit fa70d90 into gitpoint:master Dec 10, 2017
@chinesedfan chinesedfan deleted the fix_201 branch July 12, 2019 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants