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

Remove startup exception in the launcher by refactoring a try-catch #233

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

YoRyan
Copy link
Member

@YoRyan YoRyan commented Jul 15, 2020

The current code generates a NullReferenceException whenever a locomotive's description is null (i.e., for AI-only equipment). These exceptions interrupt the Visual Studio debugger on startup, making debugging the launcher a rather tedious process with a large content folder.

Bug Report at https://bugs.launchpad.net/or/+bug/1888008

@YoRyan YoRyan added the refactoring Changes with minimal user-visible effects label Jul 15, 2020
twpol pushed a commit that referenced this pull request Jul 15, 2020
- Pull request #40 at e81861b: Monogame upgrade
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions
- Pull request #216 at 927a49c: Upgrade and replace web server with EmbedIO
- Pull request #221 at 13ba17f: Refactor try-catch blocks in RunActivity
- Pull request #225 at bb67fb6: Fix advanced adhesion wheelslip upon resuming from save: https://bugs.launchpad.net/or/+bug/1294410
- Pull request #226 at 2ba1d2c: EmbedIO web server graphical track monitor
- Pull request #227 at 6ec1539: EmbedIO web server graphical train driving monitor
- Pull request #228 at 72c0146: adds links to OR on Elvas Tower
- Pull request #233 at 4084c75: Remove startup exception in the launcher by refactoring a try-catch
Copy link
Contributor

@cjakeman cjakeman left a comment

Choose a reason for hiding this comment

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

Hi Ryan,

Looks good. I'll approve after 7 days in Unstable.

Thanks,

Chris

twpol pushed a commit that referenced this pull request Jul 20, 2020
- Pull request #40 at e81861b: Monogame upgrade
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions
- Pull request #216 at 927a49c: Upgrade and replace web server with EmbedIO
- Pull request #226 at 2ba1d2c: EmbedIO web server graphical track monitor
- Pull request #227 at 6ec1539: EmbedIO web server graphical train driving monitor
- Pull request #228 at 72c0146: adds links to OR on Elvas Tower
- Pull request #232 at 377e893: JSON consist format: https://blueprints.launchpad.net/or/+spec/consist-editor
- Pull request #233 at 4084c75: Remove startup exception in the launcher by refactoring a try-catch
twpol pushed a commit that referenced this pull request Jul 21, 2020
- Pull request #40 at e81861b: Monogame upgrade
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions
- Pull request #145 at c024d04: Advanced Coupler Functionality
- Pull request #216 at 927a49c: Upgrade and replace web server with EmbedIO
- Pull request #226 at 2ba1d2c: EmbedIO web server graphical track monitor
- Pull request #227 at 6ec1539: EmbedIO web server graphical train driving monitor
- Pull request #228 at 72c0146: adds links to OR on Elvas Tower
- Pull request #232 at 377e893: JSON consist format: https://blueprints.launchpad.net/or/+spec/consist-editor
- Pull request #233 at 4084c75: Remove startup exception in the launcher by refactoring a try-catch
twpol pushed a commit that referenced this pull request Jul 22, 2020
- Pull request #40 at e81861b: Monogame upgrade
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions
- Pull request #216 at 927a49c: Upgrade and replace web server with EmbedIO
- Pull request #226 at 2ba1d2c: EmbedIO web server graphical track monitor
- Pull request #227 at 6ec1539: EmbedIO web server graphical train driving monitor
- Pull request #228 at 72c0146: adds links to OR on Elvas Tower
- Pull request #232 at 377e893: JSON consist format: https://blueprints.launchpad.net/or/+spec/consist-editor
- Pull request #233 at 4084c75: Remove startup exception in the launcher by refactoring a try-catch
- Pull request #234 at e3c545c: Rehabilitate unit testing suite, migrate to xUnit 2
twpol pushed a commit that referenced this pull request Jul 22, 2020
- Pull request #40 at e81861b: Monogame upgrade
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions
- Pull request #216 at 927a49c: Upgrade and replace web server with EmbedIO
- Pull request #226 at 2ba1d2c: EmbedIO web server graphical track monitor
- Pull request #227 at 6ec1539: EmbedIO web server graphical train driving monitor
- Pull request #228 at 72c0146: adds links to OR on Elvas Tower
- Pull request #232 at 377e893: JSON consist format: https://blueprints.launchpad.net/or/+spec/consist-editor
- Pull request #233 at 4084c75: Remove startup exception in the launcher by refactoring a try-catch
- Pull request #234 at 3ac34fe: Rehabilitate unit testing suite, migrate to xUnit 2
twpol pushed a commit that referenced this pull request Jul 22, 2020
- Pull request #40 at e81861b: Monogame upgrade
- Pull request #79 at 7d9f14b: Update version calculation for new unstable versions
- Pull request #216 at 927a49c: Upgrade and replace web server with EmbedIO
- Pull request #226 at 2ba1d2c: EmbedIO web server graphical track monitor
- Pull request #227 at 6ec1539: EmbedIO web server graphical train driving monitor
- Pull request #228 at 72c0146: adds links to OR on Elvas Tower
- Pull request #232 at 6b464fb: JSON consist format: https://blueprints.launchpad.net/or/+spec/consist-editor
- Pull request #233 at 4084c75: Remove startup exception in the launcher by refactoring a try-catch
- Pull request #234 at 3ac34fe: Rehabilitate unit testing suite, migrate to xUnit 2
Copy link
Contributor

@cjakeman cjakeman left a comment

Choose a reason for hiding this comment

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

Hi Ryan,

Approved with thanks,

Chris

@cjakeman cjakeman merged commit 6502efe into openrails:master Jul 22, 2020
@YoRyan YoRyan deleted the refactor-consist-list branch July 29, 2020 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Changes with minimal user-visible effects
2 participants