Comment #39 on issue 57 by christophedehlinger: null values should be treated as no value
http://code.google.com/p/protobuf/issues/detail?id=57
D'oh ! The last block of code should read: ProtoPerson.Builder builder = ProtoPerson.Builder.newBuilder(); String eFirstName = doSomeModeratelyCostlyEscaping(p.getFirstName()) if (eFirstName != null) builder.setFirstName(eFirstName); String eLastName = doSomeModeratelyCostlyEscaping(p.getLastName()) if (eLastName != null) builder.setLastName(eLastName); String eAddress1 = doSomeModeratelyCostlyEscaping(p.getAddress1()) if (eAddress1 != null) builder.setAddress1(eAddress1); String eAddress2 = doSomeModeratelyCostlyEscaping(p.getAddress2()) if (eAddress2 != null) builder.setAddress2(eAddress2); ProtoPerson pp = p.build(); -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
