From e3eaea62b6dd29c3411b8058bb4c73f3a9c0b678 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 7 Jul 2004 14:32:48 +0000 Subject: [PATCH] Bug 250176 Error ``r has no properties'' [xs] in file ``http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/js/src/xpconnect/src/xpcwrappedjsclass.cpp&rev=1.76.14.1'', line 15, character 0. r=doron --- webtools/bonsai/cvsblame.cgi | 2 ++ webtools/bonsai/cvsgraph.cgi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/webtools/bonsai/cvsblame.cgi b/webtools/bonsai/cvsblame.cgi index 5032041ffdd..b9348efc828 100755 --- a/webtools/bonsai/cvsblame.cgi +++ b/webtools/bonsai/cvsblame.cgi @@ -541,6 +541,8 @@ function showMessage(rev,line) { r.style.display='none' } r = document.getElementById('rev_'+rev) + if (!r) + return var l = document.getElementById('line_'+line) var t = l.offsetTop var p = l.offsetParent diff --git a/webtools/bonsai/cvsgraph.cgi b/webtools/bonsai/cvsgraph.cgi index 86ad2d8ef43..5c24ba145b7 100755 --- a/webtools/bonsai/cvsgraph.cgi +++ b/webtools/bonsai/cvsgraph.cgi @@ -135,6 +135,8 @@ function showMessage(rev) { r.style.display='none' } r = document.getElementById('rev_'+rev) + if (!r) + return false var l = document.getElementById('link_'+rev) var t = l.offsetTop + 20 r.style.top = t