@@ -312,7 +312,7 @@ func LibraryPropertiesNameFieldMissing() (result ruleresult.Type, output string)
312
312
return ruleresult .NotRun , "Couldn't load library.properties"
313
313
}
314
314
315
- if projectdata .LoadedLibrary ().IsLegacy {
315
+ if projectdata .LoadedLibrary () != nil && projectdata . LoadedLibrary () .IsLegacy {
316
316
return ruleresult .Skip , "Library has legacy format"
317
317
}
318
318
@@ -524,7 +524,7 @@ func LibraryPropertiesVersionFieldMissing() (result ruleresult.Type, output stri
524
524
return ruleresult .NotRun , "Couldn't load library.properties"
525
525
}
526
526
527
- if projectdata .LoadedLibrary ().IsLegacy {
527
+ if projectdata .LoadedLibrary () != nil && projectdata . LoadedLibrary () .IsLegacy {
528
528
return ruleresult .Skip , "Library has legacy format"
529
529
}
530
530
@@ -665,7 +665,7 @@ func LibraryPropertiesAuthorFieldMissing() (result ruleresult.Type, output strin
665
665
return ruleresult .NotRun , "Couldn't load library.properties"
666
666
}
667
667
668
- if projectdata .LoadedLibrary ().IsLegacy {
668
+ if projectdata .LoadedLibrary () != nil && projectdata . LoadedLibrary () .IsLegacy {
669
669
return ruleresult .Skip , "Library has legacy format"
670
670
}
671
671
@@ -698,7 +698,7 @@ func LibraryPropertiesMaintainerFieldMissing() (result ruleresult.Type, output s
698
698
return ruleresult .NotRun , "Couldn't load library.properties"
699
699
}
700
700
701
- if projectdata .LoadedLibrary ().IsLegacy {
701
+ if projectdata .LoadedLibrary () != nil && projectdata . LoadedLibrary () .IsLegacy {
702
702
return ruleresult .Skip , "Library has legacy format"
703
703
}
704
704
@@ -823,7 +823,7 @@ func LibraryPropertiesSentenceFieldMissing() (result ruleresult.Type, output str
823
823
return ruleresult .NotRun , "Couldn't load library.properties"
824
824
}
825
825
826
- if projectdata .LoadedLibrary ().IsLegacy {
826
+ if projectdata .LoadedLibrary () != nil && projectdata . LoadedLibrary () .IsLegacy {
827
827
return ruleresult .Skip , "Library has legacy format"
828
828
}
829
829
@@ -861,7 +861,7 @@ func LibraryPropertiesParagraphFieldMissing() (result ruleresult.Type, output st
861
861
return ruleresult .NotRun , "Couldn't load library.properties"
862
862
}
863
863
864
- if projectdata .LoadedLibrary ().IsLegacy {
864
+ if projectdata .LoadedLibrary () != nil && projectdata . LoadedLibrary () .IsLegacy {
865
865
return ruleresult .Skip , "Library has legacy format"
866
866
}
867
867
@@ -901,7 +901,7 @@ func LibraryPropertiesCategoryFieldMissing() (result ruleresult.Type, output str
901
901
return ruleresult .NotRun , "Couldn't load library.properties"
902
902
}
903
903
904
- if projectdata .LoadedLibrary ().IsLegacy {
904
+ if projectdata .LoadedLibrary () != nil && projectdata . LoadedLibrary () .IsLegacy {
905
905
return ruleresult .Skip , "Library has legacy format"
906
906
}
907
907
@@ -953,7 +953,7 @@ func LibraryPropertiesURLFieldMissing() (result ruleresult.Type, output string)
953
953
return ruleresult .NotRun , "Couldn't load library.properties"
954
954
}
955
955
956
- if projectdata .LoadedLibrary ().IsLegacy {
956
+ if projectdata .LoadedLibrary () != nil && projectdata . LoadedLibrary () .IsLegacy {
957
957
return ruleresult .Skip , "Library has legacy format"
958
958
}
959
959
@@ -1023,7 +1023,7 @@ func LibraryPropertiesArchitecturesFieldMissing() (result ruleresult.Type, outpu
1023
1023
return ruleresult .NotRun , "Couldn't load library.properties"
1024
1024
}
1025
1025
1026
- if projectdata .LoadedLibrary ().IsLegacy {
1026
+ if projectdata .LoadedLibrary () != nil && projectdata . LoadedLibrary () .IsLegacy {
1027
1027
return ruleresult .Skip , "Library has legacy format"
1028
1028
}
1029
1029
0 commit comments