From 10e50c95ca0ed29952f6b2ed01f7aba37f1f0aa4 Mon Sep 17 00:00:00 2001 From: Louis Poinsignon Date: Fri, 5 Jun 2020 16:46:57 -0700 Subject: [PATCH] Handle invalid slurm entry #67 --- prefixfile/slurm.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prefixfile/slurm.go b/prefixfile/slurm.go index 76e2b6c..db73cf3 100644 --- a/prefixfile/slurm.go +++ b/prefixfile/slurm.go @@ -135,6 +135,9 @@ func (s *SlurmLocallyAddedAssertions) AssertROAs() []ROAJson { } for _, assertion := range s.PrefixAssertions { prefix := assertion.GetPrefix() + if prefix == nil { + continue + } size, _ := prefix.Mask.Size() maxLength := assertion.MaxPrefixLength if assertion.MaxPrefixLength <= size {