Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bug in node - g

    version: v9.1p_2014-11-24/Pro Deployment (built 2014-11-24)


    I just upgraded to latest nightly, and our reports code, which has been static for like 2 years, broke.

    We have a method to manually set group headers in a grouped grid. like in the code below. The TreeNode method GetIsGroupSummary() now throws a NullPointer. The node is not null (we've debugged), it's something inside the node code that throws the exception.

    Our method:
    Code:
    private String findGroupSummaryField(Tree tree, TreeNode parent, String attribute) {
            for (TreeNode node : tree.getChildren(parent)) {
                if (node.getIsGroupSummary()) { <<<< NULLPOINTER
                    return node.getAttribute(attribute);
                }
            }
            return null;
        }
    Some ideas on how to proceed would be appreciated.

    Edit: ran it with try-catch around just to get some text out in deployed mode:

    (TypeError) line: 2589 column: 128 sourceURL: http://localhost:8080/xxx/E3FC7492BA...510.cache.html __gwt$exception: : null is not an object (evaluating 'oVb(d.j,'isGroupSummary',true).b') ; com.google.gwt.core.client.JavaScriptException: (TypeError) line: 2589 column: 128 sourceURL: http://localhost:8080/xxx/E3FC7492BA...510.cache.html __gwt$exception: : null is not an object (evaluating 'oVb(d.j,'isGroupSummary',true).b')
    Last edited by mathias; 29 Nov 2014, 05:29.

    #2
    ...reverted back to the version we ran previously,

    4.1-p20140608.

    Works fine again, no null pointer exceptions. So there's something wrong here.

    Comment


      #3
      We see the problem and will update this thread when we've decided how to resolve it.

      Comment


        #4
        The fix should be in the next nightly builds of SGWT 4.1p and nwer.

        Comment

        Working...
        X