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

Crash when analog input config doesn't have an onChange element #1900

Closed
neilenns opened this issue Jan 6, 2025 · 0 comments · Fixed by #1901
Closed

Crash when analog input config doesn't have an onChange element #1900

neilenns opened this issue Jan 6, 2025 · 0 comments · Fixed by #1901
Labels
bug Something isn't working in a officially released version

Comments

@neilenns
Copy link
Contributor

neilenns commented Jan 6, 2025

Describe the bug
Mobiflight crashes if you somehow get your config file into a situation where the Analog input config doesn't have an onChange element.

Steps To Reproduce
Steps to reproduce the behavior:

Open this file in MobiFlight: PMDG 738v1 AAL.old.zip

Expected behavior
No crash

Actual behavior
Crash

Problem is here:

row["OutputName"] = cfgItem.AnalogInputConfig.onChange.GetType().ToString().Replace("MobiFlight.InputConfig.", "");

@neilenns neilenns added the bug Something isn't working in a officially released version label Jan 6, 2025
neilenns added a commit to neilenns/MobiFlight-Connector that referenced this issue Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in a officially released version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant