Skip to content

Commit

Permalink
Checking for null
Browse files Browse the repository at this point in the history
  • Loading branch information
jspears committed May 1, 2012
1 parent e11783f commit f9fba03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/mongoose/mongoose.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ MongoosePlugin.prototype.editorFor = function (path, p, Model) {
var o = type[0];
defaults.listType = 'Object';
var s = defaults.subSchema = {};
if (o.paths)
if (o && o.paths)
_u.each(o.paths, function onListType(v, k) {
s[k] = this.pluginManager.pluginFor(k, v, o);
}, this);
Expand Down

0 comments on commit f9fba03

Please sign in to comment.