-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
DevX 14
-
2
Description
When creating / editing a component, the EditElementAction is called but the constructor call discriminates between if you are creating or editing a component.
If you create a new component, the default constructor is used which injects the LanguajeSelectorView object, so if you have a custom implementation of this class, it will be passed and used:
On this point, everything works smoothly. But if you edit the component, then the Deprecated constructor is used which has no LanguageSelectorView parameter and nothing is passed:
So the component is a built with a null LanguageSelectorView object:
Once you have modified the component and try to save it, the getCloserHandler is called, it fails with a nullPointer because the LanguageSelectorView object is truly a null:
Expected result
The editComponent uses the non deprecated constructor, which passes the LanguageSelectorView object
Actual result
The editComponent uses the deprecated constructor, which does not inject the LanguageSelectorView object, so the closerHandler fails with a nullPointer
Dev notes:
Full stacktrace attached
1.
|
Implementation | Completed | Milan Divilek | |
2.
|
Review | Completed | Jaroslav Simak | |
3.
|
piQA | Completed | Jaroslav Simak | |
4.
|
QA | Completed | Robert Šiška |