Under certain conditions, using UiElement inside a Component, it was possible for the error message to contain 'null' if the name of the component was not specified. With this fix the name of the class is printed instead.
Before:
Page -> null(UiElement(By…))
After:
Page -> MyComponent(UiElement(By…))
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
Checklist:
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
Description
Under certain conditions, using
UiElement
inside aComponent
, it was possible for the error message to contain 'null' if the name of the component was not specified. With this fix the name of the class is printed instead.Before:
Page -> null(UiElement(By…))
After:
Page -> MyComponent(UiElement(By…))
Type of change
Checklist: