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

feat: fix nil pointer panic for type map #9

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Conversation

taronarm
Copy link
Contributor

In case of one of parameters has map type and its value is nil, script ends up with panic because of checking: reflect.TypeOf(inter).Kind() == reflect.Func.

In case of one of parameters has map type and its value is nil, script ends up with panic because of checking: `reflect.TypeOf(inter).Kind() == reflect.Func`.
@CLAassistant
Copy link

CLAassistant commented Jul 11, 2024

CLA assistant check
All committers have signed the CLA.

@taronarm taronarm changed the title Fix nil pointer panic for type map fix: nil pointer panic for type map Jul 11, 2024
@hsluoyz hsluoyz changed the title fix: nil pointer panic for type map feat: fix nil pointer panic for type map Jul 12, 2024
@hsluoyz hsluoyz merged commit 00136f1 into casbin:master Jul 12, 2024
6 of 7 checks passed
Copy link

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants