Blank message box


I have app which communicate by bluetooth with arduino. Each time , when connection is not succesfull it display blank message box. Can someone help me how to solve this problem

Usually when blurthooth communication fails you get
error 507: unable to connect, is the bluetooth turned on?

Try to catch the error with when error occured block and see what is the error code