Comment 4 for bug 722966

Revision history for this message
Prageeth Silva (prageethsilva) wrote :

Oh I didn't see this mentioned comment. We have two problems with this:

a) This means the field cannot be made null when converting to the Client Model Class, but that's given we use a field. However, if the string is null, trying to get the version will given an exception. The client needs to check if the value is null, and in order to do that, the getVersion method would try to extract the value.

b) Didn't we come to the conclusion that extraction is possible only given that the data it holds is in the correct format? True, we can make sure it's stored properly, but IN CASE there is something wrong with the string, we may get an exception.

Please let me know what I should do before I can merge the data-wrapper.

Thanks!