Skip to content

Fix crash empty array on empty type - #32

Closed
elxris wants to merge 1 commit into
jaredhanson:masterfrom
elxris:master
Closed

Fix crash empty array on empty type#32
elxris wants to merge 1 commit into
jaredhanson:masterfrom
elxris:master

Conversation

@elxris

@elxris elxris commented Apr 21, 2016

Copy link
Copy Markdown

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
Copy Markdown

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