From 57a3c318ea986cf32436300f6de7e0acd616fd2e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 30 Jul 2015 15:25:44 +0000 Subject: [PATCH] Do not let to address a possible freed object --- infolog/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infolog/js/app.js b/infolog/js/app.js index 7cdbbb3605..5cce466ca9 100644 --- a/infolog/js/app.js +++ b/infolog/js/app.js @@ -168,7 +168,9 @@ app.classes.infolog = AppJS.extend( // call parent var state = this._super.apply(this, arguments); var nm = {}; - if(this.et2) + // Prevents to get access to freed et2 object + // TODO: needs more investigation to see why this.et2 sometimes gets free + if(this.et2 && Object.keys(this.et2).length >1) { var content = this.et2.getArrayMgr('content'); nm = content? content.data.nm: {};