Changed the null field values error during socket reading

Hi,

I've just updated the changes I made to fix the error while reading null fields.