From b058c017be829659bddc2514869569e613c48ba3 Mon Sep 17 00:00:00 2001 From: resurtm Date: Mon, 27 May 2013 21:42:39 +0600 Subject: [PATCH] Lift off!11 #418 --- framework/yii/views/errorHandler/main.php | 3 +++ 1 file changed, 3 insertions(+) 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),