Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 10e50c9

Browse files
committed
Handle invalid slurm entry #67
1 parent f40cd9b commit 10e50c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

prefixfile/slurm.go

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ func (s *SlurmLocallyAddedAssertions) AssertROAs() []ROAJson {
135135
}
136136
for _, assertion := range s.PrefixAssertions {
137137
prefix := assertion.GetPrefix()
138+
if prefix == nil {
139+
continue
140+
}
138141
size, _ := prefix.Mask.Size()
139142
maxLength := assertion.MaxPrefixLength
140143
if assertion.MaxPrefixLength <= size {

0 commit comments

Comments
 (0)