caught exception with empty buffer