My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 16: ComplexPanel.insert(Widget, Element, int) throws exception if element arg is null
4 people starred this issue and may be notified of changes. Back to list
Status:  Acknowledged
Owner:  mat.gessel
Type-Defect
Priority-Critical


Sign in to add a comment
 
Reported by mat.gessel, Aug 24, 2007
GWT version: 1.4_RC2
GWT Tk version: 0.2.3
Browsers tested: n/a
Browsers affected: all

GWT 1.4 introduces a new method which provides control over insertion
index. The previous method no longer accepts a null element. I see no
workaround for Tk 0.2.3 except to avoid insertions. 

Affects BasicPanel.insert(Widget, int, int) and 
ExposedCellPanel.insertWidgetAt(Widget, int)

What steps will reproduce the problem?
1. launch asquare.gwt.tk.uitest.alertdialog.Demo in src/uitest
Result: 

[ERROR] Unable to load module entry point class
asquare.gwt.tk.uitest.alertdialog.client.Demo (see associated exception for
details)
java.lang.NullPointerException: container may not be null
	at com.google.gwt.user.client.ui.ComplexPanel.insert(ComplexPanel.java:157)
	at
asquare.gwt.tk.client.ui.ExposedCellPanel.insertWidgetAt(ExposedCellPanel.java:344)
	at
asquare.gwt.tk.client.ui.ExposedCellPanel.addWidgetTo(ExposedCellPanel.java:277)
	at
asquare.gwt.tk.client.ui.ExposedCellPanel.addWidget(ExposedCellPanel.java:259)
	at asquare.gwt.tk.client.ui.ExposedCellPanel.add(ExposedCellPanel.java:235)
	at asquare.gwt.tk.client.ui.AlertDialog.addButton(AlertDialog.java:453)
	at asquare.gwt.tk.client.ui.AlertDialog.addButton(AlertDialog.java:422)
	at asquare.gwt.tk.client.ui.AlertDialog.createWarning(AlertDialog.java:158)
	at asquare.gwt.tk.uitest.alertdialog.client.Demo$3.execute(Demo.java:93)
	at asquare.gwt.tk.uitest.alertdialog.client.Demo.onModuleLoad(Demo.java:108)

Please provide any additional information below.
http://groups.google.com/group/gwt-tk/browse_thread/thread/f0cf72a5a3ef5c09

Comment 1 by alexander.epshteyn, Aug 29, 2007
Matt, could you elevate the priority of this issue?  ModalDialog doesn't work with
the latest GWT release:

[ERROR] Uncaught exception escaped
java.lang.NullPointerException: container may not be null
	at com.google.gwt.user.client.ui.ComplexPanel.insert(ComplexPanel.java:157)
	at asquare.gwt.tk.client.ui.ExposedCellPanel.insertWidgetAt(ExposedCellPanel.java:344)
	at asquare.gwt.tk.client.ui.ExposedCellPanel.addWidgetTo(ExposedCellPanel.java:277)
	at asquare.gwt.tk.client.ui.ExposedCellPanel.addWidget(ExposedCellPanel.java:259)
	at asquare.gwt.tk.client.ui.ModalDialog.add(ModalDialog.java:280)
	at com.mystorespace.client.widgets.GoogleBaseDialog.<init>(GoogleBaseDialog.java:41)
	at com.mystorespace.client.widgets.EditorMenuBar$4.onClick(EditorMenuBar.java:70)
	at
com.google.gwt.user.client.ui.ClickListenerCollection.fireClick(ClickListenerCollection.java:36)
	at asquare.gwt.tk.client.ui.SimpleHyperLink.onBrowserEvent(SimpleHyperLink.java:80)
	at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1265)
Comment 2 by mat.gessel, Sep 03, 2007
(No comment was entered for this change.)
Status: Acknowledged
Labels: -Priority-Medium Priority-Critical
Comment 3 by mat.gessel, Nov 09, 2007
Fixed but not released. I have posted a snapshot build with the fix in Google Groups
file section. See this thread: 
http://groups.google.com/group/gwt-tk/browse_thread/thread/7aa185f1fc3fe786

Sign in to add a comment

Hosted by Google Code