Make a continuity test of the two wires from the unit, one will be an earth cut out the other is an earth return, if the wires are ok, make a continuity test through the switch, if this is ok, make a fresh wire from the ignition unit terminal, and take it to earth, with the engine stopped and the plug out crank the engine, if there is still a spark you need to replace the ignition unit, as this is a saftey issue the saw should not be used until this is sorted out.
Husqvarna man
January 2010