Added check against NULL-buffers in decompress