Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException occurs anywhere the following code is used #6

Open
azizur-rehman opened this issue Aug 8, 2018 · 0 comments
Open

Comments

@azizur-rehman
Copy link

            SmsHandler.builder(context, "+989120000000")
            .withCarrierNameFilter("MCI")
            .withCustomDialogForSendSms(R.layout.my_sms_dialog)
            .withCustomDialogForChoseSim(R.layout.simcard_choosing_dialog)
            .needToShowSendSmsDialog(false)
            //Here is the logcat pointing
          .build().sendSms(DIALOG_MESSAGE, SMS_BODY, new MySmsManager.SMSManagerCallBack() {
        @Override
        public void afterSuccessfulSMS(int smsId) {

        }

        @Override
        public void afterDelivered(int smsId) {

        }

        @Override
        public void afterUnSuccessfulSMS(int smsId, String message) {

        }

        @Override
        public void onCarrierNameNotMatch(int smsId, String message) {

        }
    });

Here is the stacktrace

   java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources 
   android.content.Context.getResources()' on a null object reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant