From kde-commits Tue Feb 12 10:37:03 2008 From: David Faure Date: Tue, 12 Feb 2008 10:37:03 +0000 To: kde-commits Subject: branches/KDE/4.0/kdelibs/khtml/ecma Message-Id: <1202812623.616297.17350.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120281263331482 SVN commit 774007 by dfaure: Fix crash on http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/LNK4006.asp M +1 -1 kjs_html.cpp --- branches/KDE/4.0/kdelibs/khtml/ecma/kjs_html.cpp #774006:774007 @@ -409,7 +409,7 @@ case Width: // NS-only, not available in IE return jsNumber(view ? view->contentsWidth() : 0); case Dir: - return jsString(body->getAttribute(ATTR_DIR)); + return body ? jsString(body->getAttribute(ATTR_DIR)) : jsUndefined(); case Frames: if ( win ) return win->frames(exec);