[BLUEJ-1068] Undo in Stride editor with VarFrame in constructor can reach a wrong state
Create a stride class "SomeClass". In the constructor, create a variable ('v'), type "int" and press enter. Now hit undo (ctrl+Z) 2 times - once for the type, and the other for the declaration itself. There will be no exception or visible error, but the method {{isField(FrameCanvas)}} in {{VarFrame}} class will be invoke after the frame is removed, thus, the condition:
{code}if (parentCanvas == null){code}
will be true.
Strangely, this will not happen if the variable was in a normal method rather than a constructor.
It is not harmful, but may worth looking at to make to sure there is bigger attached.
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 4.2.1