Skip to main content



      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 14:03 Go to next message
Eclipse UserFriend
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 10:19 Go to previous message
Eclipse UserFriend
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: Thu Jul 10 17:04:38 EDT 2025

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

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

Back to the top