-
Notifications
You must be signed in to change notification settings - Fork 105
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
SDLAddCommand iconValue of nil results in INVALID_DATA #846
Comments
@Invader-Zim I'm not sure I'm totally understanding how not having access to an initializer is causing an |
There are too many initializers. I don't want to set an icon, I just want to specify the parent id. If I pass nil for the icon arguments, I get an INVALID_DATA. Personally, I have a work around; but I'm sure you want the interface to be friendly. If you don't want to add overload, then just make tolerate supplying nil for the icon args. Are you saying that when you pass nil for the icon args, you DON'T get INVALID_DATA?? If so, then either I have something else going wrong on my end - or a recent update has already addressed the issue. |
Thanks @Invader-Zim, I think I'm starting to understand the issue. I'm just trying to understand the issue here. The nullability on the initializer you mention specified that those parameters must be nonnull, so I wasn't aware you were actually using them as nullable. I think the solution will be to make those parameters nullable and allow for that use case. |
|
Bug Report
SDLAddCommand needs an initializer that accepts a parentId, but does not require an iconValue or iconType; OR allow this initializer to accept nil for iconValue/iconType.
Reproduction Steps
Expected Behavior
Either need an additional SDLAddCommand initializer that allows a parentId but removes the iconValue/iconType, OR allow nil to be passed for iconValue/iconType on the current initializer.
Observed Behavior
OS & Version Information
Test Case, Sample Code, and / or Example App
The text was updated successfully, but these errors were encountered: