Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFStore] Commit error with SingleReferenceOperation
[EMFStore] Commit error with SingleReferenceOperation [message #1588103] Tue, 27 January 2015 19:03 Go to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 266
Registered: July 2009
Senior Member
I have the following operation that got generated:
<operations xsi:type="org.eclipse.emf.emfstore.internal.server.model.versioning.operations:SingleReferenceOperation" identifier="_fWbwv6WBEeSia7ynTK8cgw" clientDate="2015-01-26T12:33:50.122-0500" featureName="element" unset="WAS_UNSET">
<modelElementId id="_a6l3j6WBEeSia7ynTK8cgw"/>
</operations>

that triggers an NPE in SingleReferenceOperationImpl at line 387:
if (oldModelElementReferenceValue != null) {
   final ModelElementId updatedOldValue = project.getModelElementId(oldModelElementReferenceValue);
if (!updatedOldValue.equals(oldValue)) {  <====NPE here


you will notice that it doesn't have any old or new value. Is the operation well formed or the code not correctly anticipating this situation?

Thanks
Alain
Re: [EMFStore] Commit error with SingleReferenceOperation [message #1591503 is a reply to message #1588103] Thu, 29 January 2015 15:19 Go to previous message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 253
Registered: July 2009
Senior Member
Hi Alain,

this looks like it could be a bug. Could you tell us how the element
feature is configured in your Ecore and what operation you triggered on
the model when this operation was recorded. It would be kind of you to
open a bug and document this in the bug. Thanks!

Cheers,
Maximilian


Am 27.01.2015 um 20:03 schrieb Alain Picard:
> I have the following operation that got generated:
> <operations
> xsi:type="org.eclipse.emf.emfstore.internal.server.model.versioning.operations:SingleReferenceOperation"
> identifier="_fWbwv6WBEeSia7ynTK8cgw"
> clientDate="2015-01-26T12:33:50.122-0500" featureName="element"
> unset="WAS_UNSET">
> <modelElementId id="_a6l3j6WBEeSia7ynTK8cgw"/>
> </operations>
>
> that triggers an NPE in SingleReferenceOperationImpl at line 387:
>
> if (oldModelElementReferenceValue != null) {
> final ModelElementId updatedOldValue =
> project.getModelElementId(oldModelElementReferenceValue);
> if (!updatedOldValue.equals(oldValue)) { <====NPE here
>
>
> you will notice that it doesn't have any old or new value. Is the
> operation well formed or the code not correctly anticipating this
> situation?
>
> Thanks
> Alain


--
Maximilian Kögel

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:[Texo] EMF Client Platform
Next Topic:[EMF][EMFStore][Sirius] Change Operations and graphs
Goto Forum:
  


Current Time: Fri Mar 29 04:52:59 GMT 2024

Powered by FUDForum. Page generated in 0.02474 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top