Explanation
According to the principle the taking away of the property must be done dishonestly.-
Dishonesty, as defined in section 24of IPC, consists of two main ingredients it says that an act is done which cause either ‘wrongful gain' or ‘wrongful loss' is said to be done dishonestly. Dishonesty must have the element of mens rea to cause loss or gain to oneself.
There should be an intention of taking property from the possession of another. Such intention must be to cause wrongful gain to oneself or wrongful loss to another.
Such taking away of property must be done without the permission of the owner- i.e. without consent.
Since there was no dishonest intention and whatever A did was not done with dishonest intention that is to either cause wrongful gain to himself or wrongful loss to B.
Please disable the adBlock and continue. Thank you.