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
FlxUIColorSwatchSelecter crashes #196
Comments
This is still broken, FlxUIColorSwatch literally cannot be constructed without failure. First the Super call in the constructor results in a call to the overriden set_color which assumes colors is not null. Then even failing that,
Setting multiColored invokes set_multiColored which eventually bubbles down to colorKey() which again assumes that colors is not null. There's no situation I've been able to find in which this component won't cause a crash. |
Sorry for neglecting this for so long -- it started as a component mostly
for my own project and I'd forgotten it's technically an official flixel-ui
component. Will try to clean it up when I have time.
…On Sun, Dec 10, 2017 at 11:17 PM, Skerper ***@***.***> wrote:
This is still broken, FlxUIColorSwatch literally cannot be constructed
without failure.
First the Super call in the constructor results in a call to the overriden
set_color which assumes colors is not null.
Then even failing that,
if (Colors != null) {
multiColored = true;
colors = Colors;
}
Setting multiColored invokes set_multiColored which eventually bubbles
down to colorKey() which again assumes that colors is not null.
There's no situation I've been able to find in which this component won't
cause a crash.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#196 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAtG-CZ5qL902OuI6_dtcA0xiT8gt9ZAks5s_LrzgaJpZM4Ju10Q>
.
--
www.fortressofdoors.com -- Games, Art, Design
|
I simply created it like this:
Then it crashes while setting the
midTone
because thecolors
is null.The text was updated successfully, but these errors were encountered: