Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ComplexPanel.insert(Widget, Element, int) throws exception if element arg is null #16

Open
GoogleCodeExporter opened this issue Nov 10, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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:3
44)
    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

Original issue reported on code.google.com by mat.ges...@gmail.com on 24 Aug 2007 at 4:21

@GoogleCodeExporter
Copy link
Author

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(ClickListenerCol
lection.java:36)
    at asquare.gwt.tk.client.ui.SimpleHyperLink.onBrowserEvent(SimpleHyperLink.java:80)
    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1265)

Original comment by alexande...@gmail.com on 30 Aug 2007 at 3:27

@GoogleCodeExporter
Copy link
Author

Original comment by mat.ges...@gmail.com on 3 Sep 2007 at 7:48

  • Changed state: Acknowledged
  • Added labels: Priority-Critical
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

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

Original comment by mat.ges...@gmail.com on 10 Nov 2007 at 4:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant