Null Pointer Exception after Migrating an Ecore model instance using EDapt [message #1770977] |
Sun, 20 August 2017 10:48  |
Bestoon Jaff Messages: 13 Registered: August 2017 |
Junior Member |
|
|
Hi,
After a long session of trials and errors, I finally managed to get EDapt to migrate my model instance automatically. To be honest, I have had too much troubles and difficulties using EDapt tool as its poorly documented. The currently available EDapt tutorial and documentation lacking details of how one can register a history with the migrator and what plugins to add to the model and editor plugins, and how to use the migrator extension point, ..etc.
After EDapt migrated my model instance, I got a Null Pointer Exception (generated by org.eclipse.jface plugin when trying to render an icon image) as shown in the attached image files. I tried to debug and find the source of the problem, but I didn't get why the icon is rendered for some of the child nodes (the newly created nodes) but not for the old existing child nodes!
Can someone please help me to fix this problem? As I'm new to EMF and EDapt and can't get my head around this exception.
Any help is highly appreciated,
Many thanks in advance,
Bestoon Jaff
|
|
|
|
Re: Null Pointer Exception after Migrating an Ecore model instance using EDapt [message #1771076 is a reply to message #1771064] |
Mon, 21 August 2017 18:18   |
Bestoon Jaff Messages: 13 Registered: August 2017 |
Junior Member |
|
|
Hi Johannes,
Thank you very much for your reply, I do appreciate that.
Concerning the NPE that I'm getting, it is only when I use EDapt to migrate my model instances. I have many times created a new instance model without ever getting such NPE. I have also re-generated the Edit plugin. So, I think it has something to do with EDapt and my guess is that it is because EDapt has changed the nsURI of the plugin and this might caused the icon image of the old child nodes to point to an incorrect resource location?!
I do very much appreciate if you could check the project which I attached to this message, to see what has caused the NPE, since I can't find the source of the problem :-(
Thanks,
Jaff
[Updated on: Mon, 21 August 2017 23:44] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02066 seconds