commit | 4b9d2e1e38cd79bc6a8963097462b1330856a953 | [log] [tgz] |
---|---|---|
author | David Symonds <dsymonds@golang.org> | Tue Apr 15 18:22:22 2014 +1000 |
committer | David Symonds <dsymonds@golang.org> | Tue Apr 15 18:22:22 2014 +1000 |
tree | 7d55b20733b9e6926e8b40808fab0be72a9d601a | |
parent | 29bcc89b25777c71ec610d4230b212c1af63c315 [diff] |
goprotobuf: Handle nils in repeated message fields in text formatting. Previously this code would panic. A nil in a repeated message field is, strictly speaking, invalid, but text formatting is often used for debugging, and it's much more useful to generate "<nil>" than to panic. LGTM=r R=r CC=golang-codereviews https://codereview.appspot.com/87960043