diff --git a/Posting.cs b/Posting.cs index 195998d..7b26de6 100644 --- a/Posting.cs +++ b/Posting.cs @@ -83,8 +83,12 @@ public class Posting } i++; } - Regex boxRegex = new Regex(@"(Box \d+)"); - this.BoxNumber = boxRegex.Matches(this.NotesOnApplying)[0].Value.Replace("Box ", ""); + try + { + Regex boxRegex = new Regex(@"(Box \d+)"); + this.BoxNumber = boxRegex.Matches(this.NotesOnApplying)[0].Value.Replace("Box ", ""); + } + catch (Exception) { } this.BargainingUnit = this.BargainingUnit.Replace("&", "&"); this.VacancyID = id; }