On Nov 12, 4:39 pm, Thomas Broyer <[email protected]> wrote: > beware of 'null's! ActivityManager will call setWidget(null) on the > AcceptsOneWidget, and most widgets aren't prepared to it and will > throw (layoutPanel.add(null) does, that's what you're experiencing) > Fix: > this.clear(); > Widget widget = Widget.asWidgetOrNull(w); > if (widget != null) { > this.add(widget); > }
Thanks so much! You fixed it! -- 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.
