marcusolsson / goddd

Exploring DDD in Go
MIT License
2.41k stars 273 forks source link

invalid memory address or nil pointer dereference #33

Open SummerFans opened 4 years ago

SummerFans commented 4 years ago

/inspection/inspection.go

    if c.Delivery.IsMisdirected {
        s.handler.CargoWasMisdirected(c)      //<-- s.handle is nil
    }

    if c.Delivery.IsUnloadedAtDestination {
        s.handler.CargoHasArrived(c).               //<-- s.handle is nil
    }