Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 683 by [email protected]: Protocol buffers java
https://code.google.com/p/protobuf/issues/detail?id=683

I have a .java class created by RestaurantBestLocationDTO.proto called RestaurantBestLocationDTOOuterClass so i make a api get call to my server with content-type application/x-protobuf then i got a message but i can find the way to parse this message into a RestaurantBestLocationDTOOuterClass list

im doing something like this

Parser<List<RestaurantBestLocationDTOOuterClass>> parserData;
List<RestaurantBestLocationDTOOuterClass> list = parserData.parseFrom(inputStream);

obviously it says that the error is nullpointer exception because parserData is null
but i cant get an Instance because is an Inferface

so can i do to get what i want?

i just need to parse the response and get the list

What is the expected output? What do you see instead?
I want to get a List of RestaurantBestLocationDTOOuterClass

What version of the product are you using? On what operating system?
protobuf 2.6.1

Please provide any additional information below.
...


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to