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

Update SoftButtonObject initialization with invalid configurations #2067

Closed
joeljfischer opened this issue Jan 6, 2022 · 0 comments
Closed
Assignees
Labels
bug A defect in the library manager-screen Relating to the manager layer - screen managers
Projects

Comments

@joeljfischer
Copy link
Contributor

Bug Report

Currently we return nil if a SoftButtonObject is created with two states that are the same. There are other cases that should be handled, such as the state array having no objects or if there's no state with initialStateName.

Reproduction Steps
  1. Create a soft button object with no states
Expected Behavior

An exception in DEBUG and a nil object in RELEASE

Observed Behavior

Undefined behavior

OS & Version Information
  • iOS Version: n/a
  • SDL iOS Version: 7.3.1
  • Testing Against: n/a
Test Case, Sample Code, and / or Example App

n/a

@joeljfischer joeljfischer added bug A defect in the library manager-screen Relating to the manager layer - screen managers labels Jan 6, 2022
@joeljfischer joeljfischer self-assigned this Jan 6, 2022
@joeljfischer joeljfischer added this to To do in v7.4.0 via automation Jan 6, 2022
v7.4.0 automation moved this from To do to Done Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library manager-screen Relating to the manager layer - screen managers
Projects
No open projects
Development

No branches or pull requests

1 participant