chatzilla only. bug 79311, chatzilla doesn't always connect properly

r=samuel@sieb.net, rs=brendan@mozilla.org, a=asa@mozilla.org

check nextLine before using it.
This commit is contained in:
rginda%netscape.com 2001-06-07 00:49:19 +00:00
Родитель d30a77caa2
Коммит 86c980ae74
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -41,8 +41,11 @@ function event_tracer (e)
{
var nextLine =
e.destObject.sendQueue[e.destObject.sendQueue.length - 1];
data = "'" + nextLine.replace ("\n", "\\n")
+ "' (may retry a few times)";
if (nextLine)
data = "'" + nextLine.replace ("\n", "\\n")
+ "' (may retry a few times)";
else
data = "!!! Nothing to send !!!";
if (debugData.lastEventType == "senddata" &&
debugData.lastEventData == data)
{