diff --git a/o2web/source/o2_core/o2.js b/o2web/source/o2_core/o2.js index e0f63e14d3dc72b2ef58cd42f7faf3861b540409..28059587d7fdb557388b84ac67a2f56f27849806 100644 --- a/o2web/source/o2_core/o2.js +++ b/o2web/source/o2_core/o2.js @@ -1862,7 +1862,7 @@ if (!window.Promise){ var _promiseAll = function(p){ if (o2.typeOf(p)=="array"){ - if (p.some(function(e){ return (o2.typeOf(e.then)=="function") })){ + if (p.some(function(e){ return (e && o2.typeOf(e.then)=="function") })){ return Promise.all(p); }else{ return { "then": function(s){ s(p); return this;} };