My favorites | Sign in
Google
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
New issue | Search
for
| Advanced search | Search tips
Issue 1276: RichTextArea throws TypeError 'null' is Null or not an object in IE6
5 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  jgw+personal@google.com
Closed:  Aug 2007
Type-Defect
Priority-Critical
Category-UI
Milestone-1_4_RC2


Sign in to add a comment
 
Reported by Dominik.J.Steiner, Jun 19, 2007
Found in GWT Release:
1.4
Detailed description:
The method detachEvents(Element elem) throws a TypeError 'null' is Null or
not an object.
The method looks like this 

  private static native void detachEvents(Element elem) /*-{
    var body = elem.contentWindow.document.body;
    body.onkeydown =
    body.onkeyup =
    body.onkeypress =
    body.onmousedown =
    body.onmouseup =
    body.onmousemove =
    body.onmouseover =
    body.onmouseout =
    body.onclick = null;
  }-*/;

where in my test case the element parameter is

<IFRAME class=gwt-RichTextArea src="javascript:''" __eventBits="7041"
onchange="null" onerror="null" __listener="null" __widgetID="1"></IFRAME>


Workaround if you have one:


Links to the relevant GWT Developer Forum posts:

Comment 1 by gwt.team.morrildl, Jul 06, 2007
This might be related to the several other RTA bugs that have been filed, but I'm not
100% sure so I'm leaving them all open.
Owner: gwt.team.jgw
Labels: -Priority-Medium Priority-Critical Category-UI Milestone-1_4_RC2
Comment 2 by gwt.team.jgw, Jul 09, 2007
Once I get done reviewing all the RichText issues, I suspect that this will be
subsumed by one of them.
Status: Accepted
Comment 3 by gwt.team.jgw, Jul 17, 2007
I haven't been able to reproduce this on IE yet. Can you give me a test snippet that
will reproduce it? Thanks.
Status: NeedsInfo
Comment 4 by rustyshelf, Jul 22, 2007
I'm not sure if this is the same problem, but I get the same error when I try to
clear one of my panels. The panel does not have a rich text editor on it. I'm just
trying to narrow it down to the smallest case that produces this error, but it only
happens in IE 6.0 (not 6.5 or 7), and it's to do with this line:
function detachEvents(elem){
  var body = elem.contentWindow.document.body;
  >>>body.onkeydown = body.onkeyup = body.onkeypress = body.onmousedown =
body.onmouseup = body.onmousemove = body.onmouseover = body.onmouseout = body.onclick
= null;
}

As soon as I can come up with a small test case to show it I will, but I thought I'd
post here in case you guys were using IE6.5 or 7 to try and reproduce this problem.

Rusty
Comment 5 by rustyshelf, Jul 23, 2007
Actually I stand corrected. It is a RTA bug. I cracked open the gwt_user.jar,
commented out the detach events line, and hey presto IE 6.0 was happy.

Let me know if you need a test case for this, or if this is enough information to go on.
Comment 6 by gwt.team.jgw, Aug 17, 2007
This appears to be working correctly with the last round of RTA fixes. Please let us
know if this is not the case.
Status: FixedNotReleased
Comment 7 by gwt.team.scottb, Aug 20, 2007
1.4 RC2 now released.
Status: Fixed
Comment 8 by sumitcha...@google.com, Apr 28, 2008
 
Owner: jgw
Sign in to add a comment