I've added this for safety, in case a future commit removes the non 0 return in read(byte[]), it shouldn't ever cause this and this would be the correct behavior in that case.