Skip to content

Fix crash when attribute name couldn't be found #16

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

Closed
wants to merge 2 commits into from

Conversation

solomon23
Copy link

This fixes a crash for me in my large react environment. Not sure why the attribute.name was null for certain classes, but this protects against it.

@PCreations
Copy link
Contributor

PCreations commented Dec 16, 2016

The PR #12 should already fixes that :) It's because some jsx element such as the spread attribute does not have a name property.

@gajus
Copy link
Owner

gajus commented Dec 18, 2016

Fixed in #12. Thank you @PCreations and @solomon23.

@gajus gajus closed this Dec 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants