Doese anyone know why when I append the following unsigned char to my packet, it gets missed on the other side?

packet.append((char) 0x00);

However, this does not happen always, as somewhere else in another program It gets appended to the packet.

any guesses?