Fix panic with nil message entry

This commit is contained in:
Chris Smith 2017-12-08 08:16:24 -08:00 committed by Chris Smith
parent 8bd1822722
commit 527a1c97e7

View file

@ -445,7 +445,7 @@ func (b *cloudBackend) waitForUpdate(path string) (apitype.UpdateStatus, error)
func printEvent(event apitype.UpdateEvent) {
stream := os.Stdout // Ignoring event.Kind which could be StderrEvent.
rawEntry, ok := event.Fields["text"]
if !ok {
if !ok || rawEntry == nil {
return
}
text := rawEntry.(string)