Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Jun 2009
    Posts
    21
    Vote Rating
    0
    ocooper is on a distinguished road

      0  

    Default [FIXED] [2.0-rc1] Container - setLayout bug

    [FIXED] [2.0-rc1] Container - setLayout bug


    Hi,

    In the latest version from the repository, setLayout() in Container.java checks whether the layout passed in isn't null and then if it isn't it calls layout.setContainer with null. This results in a null pointer exception in FormLayout at Line 119 as it tries to call addStyleName() with a null Container.

    Looking at the revisions looks like this was added in r1576.

    Line 555 in Container.java:
    Code:
      protected void setLayout(Layout layout) {
        if (this.layout != null) {
          this.layout.setContainer(null);
        }
        this.layout = layout;
        layoutNeeded = true;
        layout.setContainer(this);
      }

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    The change was needed to fix a couple of other issue. I fixed FormLayout.

    Fixed in SVN.

Thread Participants: 1