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

Application is crashing due to latest SDK 1.7 #47

Open
arindamhit opened this issue Apr 14, 2021 · 4 comments
Open

Application is crashing due to latest SDK 1.7 #47

arindamhit opened this issue Apr 14, 2021 · 4 comments

Comments

@arindamhit
Copy link

arindamhit commented Apr 14, 2021

Hi,

I am trying to add the DLT ID and upgraded the SDK to 1.7. In my application class, I added the DLT ID.
The code is like below:
SendOTP.initializeApp(this,mAuthKey,"1207161xxxxxxx");

But when I am trying to run the app, I am getting the below exception:
Exception:: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference

The exception is coming due to the below line:
SendOTP.getInstance().getTrigger().initiate();

Can you please help me where I am doing wrong. These all were working fine with 1.3 SDK release.

Thanks,
Arindam.

@arindamhit
Copy link
Author

@AdityaIsHere Any idea on this?

@arindamhit
Copy link
Author

Any update on this issue?

@arindamhit
Copy link
Author

What I can observe is, it started breaking from 1.4 version. Please check why this is happening.

@abhijeetvijai
Copy link

This library is now outdated. Use this https://github.com/walkovermsg91/sendotp-android

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

2 participants