★ wanayoo — archive 1999 https://github.com/RocketChat/Rocket.Chat.iOS/pull/2394Nouvelle recherche | Portail wanayoo
Skip to content
This repository has been archived by the owner. It is now read-only.

[CRASH] AuthTableViewController.swift line 128 AuthTableViewController.viewDidLoad() #2394

Merged
merged 3 commits into from Dec 3, 2018

Conversation

@filipealva
Copy link
Collaborator

@filipealva filipealva commented Dec 3, 2018

@RocketChat/ios

This crash is caused due to a nil serverURL when loading an AuthTableViewController. I couldn't reproduce it, so I took some actions that will prevent this crash from happening on any given scenario:

  • Stop forcing unwrap of AuthTableViewController and LoginTableViewController serverURL properties
  • Stop recomputing the url property from ConnectViewController at the time of injecting it into Auth or Login screens. Instead of doing that I just used the stored version of the URL that we set right after connecting and validating it, i.e. it will never be nil if the connection is working properly.

Closes #2385

filipealva added 3 commits Dec 3, 2018
…ng to present auth or login screens, use the property that is set right after validating the URL that was actually used to connect successfully
@filipealva filipealva added this to the 3.2.0 milestone Dec 3, 2018
@filipealva filipealva added this to In progress in Cycle 11: 11/05 ~ 12/05 via automation Dec 3, 2018
@filipealva filipealva requested review from cardoso and rafaelks Dec 3, 2018
Copy link
Contributor

@rafaelks rafaelks left a comment

💯 ✅

@rafaelks rafaelks merged commit 39126b4 into develop Dec 3, 2018
3 of 4 checks passed
3 of 4 checks passed
ci/circleci: test Your tests failed on CircleCI
Details
Hound No violations found. Woof!
ci/circleci: lint Your tests passed on CircleCI!
Details
license/cla Contributor License Agreement is signed.
Details
Cycle 11: 11/05 ~ 12/05 automation moved this from In progress to Done Dec 3, 2018
@rafaelks rafaelks deleted the fix/auth-crash branch Dec 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.