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

Special handling for undef in _check_readonly() #167

Open
pjcj opened this issue Feb 2, 2022 · 0 comments
Open

Special handling for undef in _check_readonly() #167

pjcj opened this issue Feb 2, 2022 · 0 comments

Comments

@pjcj
Copy link

pjcj commented Feb 2, 2022

Sorry I don't have time for a proper bug report or PR right now, but I think we need a line like return '' unless defined $_[1]; on line 795 and a half otherwise we get the error message Usage: Internals::SvREADONLY(SCALAR[, ON]).

If the context or anything else isn't clear let me know and I'll do a proper report, but I hit this when calling $ddp->parse($v) when $v is undef in a _data_printer sub.

And thanks for DDP!

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

No branches or pull requests

1 participant