Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354529 - NPE in irutils when using :: operator
Summary: NPE in irutils when using :: operator
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 12:51 EDT by Jeff Douglas CLA
Modified: 2017-02-23 14:20 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Douglas CLA 2011-08-11 12:51:18 EDT
Problem occurs with lists. Here's a testcase:

package acme.xxxx;

library tester {}

    function persistResult(name string, pkgName string, resultRootSum ResultSummaryRoot)
        //append the test case summary to result root summary 
        resultSum ResultSummary;
        resultSum.name = name;
        resultSum.pkgName = pkgName;
        resultRootSum.trSummary.appendElement(resultSum);
        resultRootSum.trSummary ::= resultSum;
        resultRootSum.trSummary ::= resultRootSum.trSummary;
        resultRootSum.trSummary = resultSum :: resultRootSum.trSummary;
        resultRootSum.trSummary = resultRootSum.trSummary :: resultRootSum.trSummary;
        resultRootSum.trSummary = resultRootSum.trSummary :: resultSum;
        resultRootSum.trSummary = resultRootSum.trSummary :: resultRootSum.trSummary;
    end
end

Record ResultSummary
    pkgName String {@XMLAttribute{}};    //package name
    name String{@XMLAttribute{}};        //test library part name
end
Record ResultSummaryRoot
    trSummary ResultSummary[]{};
end
Comment 1 Paul Harmon CLA 2011-10-24 12:40:04 EDT
this appears to be working correctly now
Comment 2 Jeff Douglas CLA 2011-11-10 14:41:19 EST
Verified