bryanduxbury/cascading2-protobufs — pull request #14 by nmalkin (2013-10-29 22:34:52+00:00)
Title: Provide at least one copy of protos with repeated fields

PR #8 added ExpandRepeatedProto, which introduced support for protos with repeated fields by providing one copy of a proto for each value in a repeated field.

Following this logic, if the repeated field had no values, ExpandRepeatedProto would provide exactly 0 copies. This behavior is undesired, as other fields might still contain values. This commit therefore ensures that at least one copy of the proto is returned, even if there aren't any values in the repeated field.