|
|
## NPE when Henshin Transformations have been changed
|
|
|
There is a typical error when Henshin transformations are changed in Codeling.
|
|
|
It is possible that they do not find matches, although they should be.
|
|
|
It also has the impact that the tests tail with a stack trace like the following:
|
|
|
|
|
|
```
|
|
|
java.lang.NullPointerException
|
|
|
at org.eclipse.emf.henshin.model.resource.HenshinResourceSet.getRealEPackage(HenshinResourceSet.java:330)
|
|
|
at org.eclipse.emf.henshin.model.resource.HenshinResourceSet.getModule(HenshinResourceSet.java:280)
|
|
|
at de.mkonersmann.advert.il.moduleTransformations.TransformationTest.executeAndCompare(TransformationTest.java:125)
|
|
|
at de.mkonersmann.advert.il.moduleTransformations.TransformationTest.testComponentHierarchySharedToScoped(TransformationTest.java:91)
|
|
|
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
|
|
[...]
|
|
|
at org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness$1.run(PlatformUITestHarness.java:47)
|
|
|
at java.lang.Thread.run(Thread.java:745)
|
|
|
```
|
|
|
In that case, the Henshin Editor placed relative links to elements in the henshin file, which start with
|
|
|
```../../../../../../plugin/```. These should all be replaced with the package uri. |
|
|
\ No newline at end of file |