Skip to content

Commit

Permalink
Check for null in extractOptionsDependentKeys (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
xcambar authored and offirgolan committed Jul 26, 2016
1 parent b20c56a commit 5cfb151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/validations/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ function extractOptionsDependentKeys(options) {
return Object.keys(options).reduce((arr, key) => {
let option = options[key];

if(typeof option === 'object' && option.isDescriptor) {
if(option && typeof option === 'object' && option.isDescriptor) {
return arr.concat(option._dependentKeys || []);
}

Expand Down

0 comments on commit 5cfb151

Please sign in to comment.