The magnetic field is zero at mid point of AB and at P as shown