I had this very fault with mine when I bought it. The switch itself is very cheap and it's a simple fix. Pop the wire off and touch it to earth. If it lights the switch (with the ignition on) then the switch is faulty.
sometimes the diff switch isnt screwed in far enough, so can not earth to complete the circuit and light the dash light, but it makes no difference to whether the diff lock works or not