diff --git a/src/DebugBar/Resources/debugbar.js b/src/DebugBar/Resources/debugbar.js index 9780aaf..96f86a9 100644 --- a/src/DebugBar/Resources/debugbar.js +++ b/src/DebugBar/Resources/debugbar.js @@ -934,6 +934,7 @@ if (typeof(PhpDebugBar) == 'undefined') { * @return {String} Dataset's id */ addDataSet: function(data, id, suffix, show) { + if (!data || !data.__meta) return; if (this.isIframe) { window.top.phpdebugbar.addDataSet(data, id, '(iframe)' + (suffix || ''), show); return;