That's why it is recommended that you connect the negative jumper cable to the vehicle body and not the negative post of the battery. This is so you can avoid sparks from occurring near the battery where flammable hydrogen gas may be present, resulting in a possible explosion.