1000hz / bootstrap-validator

A user-friendly HTML5 form validation jQuery plugin for Bootstrap 3
http://1000hz.github.io/bootstrap-validator
MIT License
2.38k stars 1.07k forks source link

Errors null bug #657

Open petrkrejci1 opened 5 years ago

petrkrejci1 commented 5 years ago

When errors is null errors.length call is causing uncaught error. Fixed by adding check on errors and then calling the original errors.length.

petrkrejci1 commented 5 years ago

I should have fix it as follows: if (errors && !errors.length) return