ericberman / MyFlightbookWeb

The website and service for MyFlightbook
49 stars 18 forks source link

Periodic crash in flights #1268

Closed ericberman closed 4 months ago

ericberman commented 4 months ago

It's in this code in _logbookTableContents.cshrml:

                string szExpandoID = String.Format(CultureInfo.InvariantCulture, "expando{0}", led.FlightID);
                Aircraft ac = ua[led.AircraftID];
                if (ac.AircraftImages.Count == 0)
                {
                    ac.PopulateImages();
                }

Looks like ac can be null (!) Why would this ever happen? Flushing the cache solves it, so there's some sort of cache miss that's not being fixed?

ericberman commented 4 months ago

Repro steps: