A washing machine comprising: a tub for storing water; a drum , rotatably provided in the tub, for accommodating laundry; and a detergent supply device configured for supplying a liquid additive to the tub, wherein the detergent supply device comprises: a cartridge containing the additive; a pump configured for extracting the additive contained in the cartridge; an outlet flow path pipe connected to the cartridge, being configured to flow therethrough the extracted additive to the tub; a flow path pipe sensor , provided at the outlet flow path pipe, being configured for detecting the additive in the outlet flow path pipe; and a controller configured for receiving from the flow path pipe sensor a first signal on an additive flowing in the outlet flow path pipe , and determining whether or not the received first signal matches additive no-detection data pre-stored in a memory ,wherein the pump is configured to extract the additive from the cartridge into the outlet flow path pipe , in case that the first signal matches the additive no-detection data, and wherein the additive no-detection data is information related to a signal received from the flow path pipe sensor when additive does not exist in the outlet flow path pipe . a tub for storing water; a drum , rotatably provided in the tub, for accommodating laundry; and a detergent supply device configured for supplying a liquid additive to the tub, wherein the detergent supply device comprises: a cartridge containing the additive; a pump configured for extracting the additive contained in the cartridge; an outlet flow path pipe connected to the cartridge, being configured to flow therethrough the extracted additive to the tub; a flow path pipe sensor , provided at the outlet flow path pipe, being configured for detecting the additive in the outlet flow path pipe; and a controller configured for receiving from the flow path pipe sensor a first signal on an additive flowing in the outlet flow path pipe , and determining whether or not the received first signal matches additive no-detection data pre-stored in a memory ,wherein the pump is configured to extract the additive from the cartridge into the outlet flow path pipe , in case that the first signal matches the additive no-detection data, and wherein the additive no-detection data is information related to a signal received from the flow path pipe sensor when additive does not exist in the outlet flow path pipe . a cartridge containing the additive; a pump configured for extracting the additive contained in the cartridge; an outlet flow path pipe connected to the cartridge, being configured to flow therethrough the extracted additive to the tub; a flow path pipe sensor , provided at the outlet flow path pipe, being configured for detecting the additive in the outlet flow path pipe; and a controller configured for receiving from the flow path pipe sensor a first signal on an additive flowing in the outlet flow path pipe , and determining whether or not the received first signal matches additive no-detection data pre-stored in a memory ,wherein the pump is configured to extract the additive from the cartridge into the outlet flow path pipe , in case that the first signal matches the additive no-detection data, and wherein the additive no-detection data is information related to a signal received from the flow path pipe sensor when additive does not exist in the outlet flow path pipe . <EOS>