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

Fix crash empty array on empty type #32

Closed
wants to merge 1 commit into from

Conversation

elxris
Copy link

@elxris elxris commented Apr 21, 2016

This will fix when attempting to add an empty array to a non previous existing type.

Example to reproduce bug:

function(req, res, next) {
  var errors = req.flash('error');
  req.flash('error', errors); //Here will crash because of the length property of undefined.
}

@martinkadlec0
Copy link

Likely dupe of #9

@elxris elxris closed this Oct 8, 2021
@elxris elxris deleted the master branch October 8, 2021 18:09
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.

2 participants