App crashing upon Connecting to BLE

Hi I am creating quite a simple app to control a neopixel via arduino uno and the code was working quite well on my tab, but when i tried it on my phone via the companion app as soon as i try to connect my hc-05 right before connecting the app crashes, can someone please tell a reason and solution for this?