-
Notifications
You must be signed in to change notification settings - Fork 23
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
[FIX] XMLTemplateAnalyzer: Handle empty XML view/fragment #471
Conversation
@@ -162,6 +162,13 @@ class XMLTemplateAnalyzer { | |||
return; | |||
} | |||
|
|||
if ( !result ) { | |||
// Skip empty xml views/fragments | |||
log.warn("Ignoring empty file " + info.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't an empty view/fragment invalid? XML does not know allow empty files, IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. I will change this to throw a proper error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Fixes: https://github.com/SAP/ui5-builder/issues/281
Thank you for your contribution! 🙌
To get it merged faster, kindly review the checklist below:
Pull Request Checklist