diff --git a/AirBomber/AirBomber/PlanesCollectionInfo.cs b/AirBomber/AirBomber/PlanesCollectionInfo.cs index 1e57a61..1d22f93 100644 --- a/AirBomber/AirBomber/PlanesCollectionInfo.cs +++ b/AirBomber/AirBomber/PlanesCollectionInfo.cs @@ -17,7 +17,7 @@ namespace AirBomber } public bool Equals(PlanesCollectionInfo? other) { - if (other == null) + if (other == null || other.Name == null) throw new ArgumentNullException(nameof(other)); return Name == other.Name; }