FIX : Better messaging interface

Fixed issues with read buffer gives null pointer exception