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 painting empty color on a svg #2683

Open
freeboub opened this issue Oct 10, 2024 · 0 comments
Open

Crash when painting empty color on a svg #2683

freeboub opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@freeboub
Copy link

Description

I found a crash due to a 'bad' usage of the API.
when painting a svg with an undefined color.value

<BlendColor color={color} mode="srcIn" />

The app crash with error:
Missing one or more required properties color in the skBlendColorFilter component.

Version

1.3.13

Steps to reproduce

Following sample

        <Group
          transform={transform}
          layer={
            <Paint>
              <BlendColor color={color} mode="srcIn" />
            </Paint>
          }
        >
          <ImageSVG svg={svg} />
        </Group>

Snack, code example, screenshot, or link to a repository

I can do it if you want, but as it is a bad usage, I am not sure it will be investigated.

@freeboub freeboub added the bug Something isn't working label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant