Update dependencies & fix null pointer exception when file has missing properties or none at all

This commit is contained in:
2022-02-23 00:16:14 +01:00
parent 097499a916
commit bba612476b
3 changed files with 25 additions and 18 deletions

View File

@@ -21,6 +21,9 @@ public class AttributeUpdaterKernel {
if(allValidPaths != null && configPattern != null){
for(File file : allValidPaths){
List<FileAttribute> attributes = collector.loadAttributes(file);
if (attributes.isEmpty()) {
continue;
}
boolean fileHasChanged = false;
for(AttributeConfig config : configPattern){
/*