Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[CRASH] AuthTableViewController.swift line 128 AuthTableViewController.viewDidLoad() #2394
Conversation
…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
|
|
@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:
AuthTableViewControllerandLoginTableViewControllerserverURL propertiesConnectViewControllerat 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