Browse Source

Prevent potential null pointer error

newShading
Ludo Stellingwerff 9 years ago
parent
commit
9bf7452041
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      lib/DataSet.js

+ 3
- 0
lib/DataSet.js View File

@ -241,6 +241,9 @@ DataSet.prototype.update = function (data, senderId) {
var fieldId = me._fieldId;
var addOrUpdate = function (item) {
if (!item){
return;
}
var id = item[fieldId];
if (me._data[id]) {
var oldData = util.extend({}, me._data[id]);

Loading…
Cancel
Save