In my app I am implementing custom dialog. I followed the tutorial here(https://www.thepolyglotdeveloper.com/2017/01/using-modal-dialogs-nativescript-angular-mobile-application/). As per the tutorial, while calling "this.modal.showModal" function I am getting a functioning modal box, however there is a error on my console. (See Below): Please let me know what the problem could be.
FYI: The error is occurring on android physical device.
JS: ERROR Error: Uncaught (in promise): Error: java.lang.NullPointerException: A
ttempt to invoke virtual method 'android.os.Looper android.content.Context.getMa
inLooper()' on a null object reference
JS: ERROR Error: Uncaught (in promise): Error: java.lang.NullPointerException: A
ttempt to invoke virtual method 'android.os.Looper android.content.Context.getMainLooper()' on a null object reference