Ignore changed XML files that cause exception
Closed this issue · 2 comments
stro18 commented
Description
GitUtils.getClazz
returns null
if the changed file is not a Java file (e.g. webapps/docs/changelog.xml)
This results in a NullPointerException in the constructor of ChangedEntity
Temporary Solution
Add the following code to ChangedEntity:329
if (clazzName == null) {
continue;
}
DaGeRe commented
Thanks for the hint, this should changed with e085196
The use of continue
is discouraged under most circumstances, since it may lead to hard-to-read "spaghetti" code.
stro18 commented
Thanks.