I do not know where to add such assertion.
I think I can't change anything.
As far as I understand exception is thrown inside Label constructor.

On Jul 16, 12:08 pm, Jaroslav Záruba <[email protected]>
wrote:
> I had the same issue - no problem in hosted mode, "this$static is null" in
> compiled. I found out I happen to call a method on null. Putting couple of
> not-null assertions into your code might help.
>
>
>
> On Fri, Jul 16, 2010 at 10:49 AM, evgenyk <[email protected]> wrote:
> > Hello friends!
> > I periodically get an exception thrown from the following compiled
> > code (not obfuscated version):
>
> > function $MyLabel(this$static){
> >  $setElement(this$static, ($clinit_73() ,
> > $doc).createElement('div'));
> >  (!!this$static.element || throwAssertionError_Object("This
> > UIObject's element is not set; you may be missing a call to either
> > Composite.initWidget() or UIObject.setElement()") , this
> > $static.element)['className'] = 'gwt-Label';
> >  return this$static;
> > }
>
> > Java version:
> > public class MyLabel extends Label {
> >    public MyLabel(String text) {
> >        super(text);
> >    }
> >    ... skipped other methods
> > }
>
> > Exception is thrown time after time in production environment on
> > different client browsers with Firefox version 3.0.x on Windows XP.
> > It seems to me like a bug in FF. Is there any workaround, or I'm doing
> > something wrong?
> > GWT version 2.0.3
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-web-toolkit%2Bunsubs 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to