diff --git a/framework/yii/views/errorHandler/main.php b/framework/yii/views/errorHandler/main.php index 91b7bac..bf4e506 100644 --- a/framework/yii/views/errorHandler/main.php +++ b/framework/yii/views/errorHandler/main.php @@ -446,6 +446,9 @@ window.onload = function() { }; var refreshCallStackItemCode = function(callStackItem) { + if (!Sizzle('pre', callStackItem)[0]) { + return; + } var top = callStackItem.offsetTop - window.pageYOffset, lines = Sizzle('pre', callStackItem)[0].getClientRects(), lineNumbers = Sizzle('.lines-item', callStackItem),