Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method getAttributes of XML-DataContainer returns null, when no attribute is found #45

Open
hwalter67 opened this issue Jul 27, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hwalter67
Copy link
Contributor

When executing the getAttributes method with an XPath filter and attribute name that does not exit within the XML-DataContainer, then null will be returned
e.g.:
String[] notations = ETranslation.NOTATION.getAttributes("Settings", "name");

The method should return an empty String-Array instead of null, to avoid NullPointerException

@hwalter67 hwalter67 added the bug Something isn't working label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants