NullPointerException during a EcoreUtil::resolveAll call

Description

A null pointer exception occurs when resolving parts of Spring Petclinic. After the resource is retrieved by JaMoPPJDTSingleFileParser::parseDirectory, the EcoreUtil::resolveAll visits all the proxies in that resource and tries to resolve them. This results in a null pointer exception. In the JDT-only variant without proxy objects, this exception did not occur. To reproduce this error, we have created a test case with the smallest possible input. This test runs without problems in the current version on the master branch. In contrast, this test case causes an exception in the previous ticket's version.

Environment

None

git code review opened

opened during git code review in

Activity

Show:
Manar Mazkatli
August 3, 2021 at 5:02 PM

The problem is that the current state of jamopp-branch is not used. Merging the jamopp-branch with JAM-8 resolves the error.

I detected an additional error with log4j configuration, which does not affect the test. However, I will try to fix it tomorrow. 

Done

Details

Assignee

Reporter

Priority

Created August 2, 2021 at 1:59 PM
Updated August 12, 2021 at 8:55 AM
Resolved August 3, 2021 at 5:02 PM