Bug 448727 - [StateMachineDiagram] Xtext seems to fail when using auto-completion on transition "F2 edition"
Summary: [StateMachineDiagram] Xtext seems to fail when using auto-completion on trans...
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.0.1   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-24 10:30 EDT by matthieu perin CLA
Modified: 2017-09-08 09:45 EDT (History)
2 users (show)

See Also:


Attachments
warning Stack trace (6.48 KB, text/plain)
2014-10-24 10:30 EDT, matthieu perin CLA
no flags Details
Error stack (5.57 KB, text/plain)
2014-10-24 10:32 EDT, matthieu perin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description matthieu perin CLA 2014-10-24 10:30:24 EDT
Created attachment 248159 [details]
warning Stack trace

Hi, steps to find the bug.
* Create a StateMachine and it associated State Machine Diagram,
* Drop 2 states,
* Draw a transition between them,
* Use auto-completion (CTRL+SPACE)

The warning appear in the error Log, stack trace given in the attachment, but menu is working.
Comment 1 matthieu perin CLA 2014-10-24 10:32:33 EDT
Created attachment 248160 [details]
Error stack

Sometimes after "playing" with the edition when you "click out" to close the editor one error occurs (detail in the attachment)
Comment 2 Ansgar Radermacher CLA 2015-02-13 08:41:10 EST
I could reproduce the warning, but not the error (for the moment).
Comment 3 Ansgar Radermacher CLA 2015-02-16 03:34:22 EST
Could reproduce the null pointer exceptions. It happens if you exist with an empty string. This has been corrected with commit.

Commit 8ffe13150381a0158eb808578c90e632fa3a5c40 for the master and
commit afc8d2893584cef98d649d1ed7b9acb5b413248a for 1.0-maintenance

fixes both problems. In addition the commit fixes that an invalid string remains in the model, if it had not been added during this editing session (an adapter removes it as soon as there is no longer an error, but the adapter only got registered when the invalid string was created).