diff --git a/425MP4_report.pdf b/425MP4_report.pdf new file mode 100644 index 0000000000000000000000000000000000000000..b76a2023915802d47991b26745d6a9ed33aee418 Binary files /dev/null and b/425MP4_report.pdf differ diff --git a/maplejuice/utils.go b/maplejuice/utils.go index b75c0cb8b1f8f82f03a9e1490ff80a590cdb7f9a..1ccb0a041ca0da366618060b00276506d8cad15b 100644 --- a/maplejuice/utils.go +++ b/maplejuice/utils.go @@ -103,6 +103,9 @@ func establishConnection(workerIP string) net.Conn { } func Send(sender string, conn net.Conn, msgType MsgType, payload interface{}) error { + if conn == nil { + return fmt.Errorf("Connection is nil") + } message := Message{ Sender: sender, Type: msgType,