App closes on Bluetooth Connected?

As I put the register block in When Bluetooth.Connected block. My app gets closed down, I don't know what is the exact bug. Can you help me?


The above is my blocks image.

See your other Topic on the same subject Yash.