-
Notifications
You must be signed in to change notification settings - Fork 45
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
When I call Crypto.decrypt, it gives me a NullPointerException: println needs a message #5
Comments
Can you please share the full stack trace here ? |
Also you can set an error listener to get more details about exceptions (errors) you got while working with crypto.setErrorListener(new ErrorListener() {
@Override
public void onError(Exception e) {
/ / handle error here
}
});
|
Full stack trace here...I've stripped out the detailed package name for confidentiality purposes
|
It is crashing on passing an empty exception message to the ErrorHandle. This is an internal error. But you still have some issues on your code cause ErrorHandle is triggered. Thanks for reporting this. I will fix it and update here ASAP. |
ok, thanks. I tried to add an error listener but it didn't even get triggered. |
Yup cause an issue is rised before, on line number 19, and listener is triggerd after. |
I've just released new version, please try it : compile 'com.yakivmospan:scytale:1.0.1' |
Thanks. Works now. After analysis, I discovered that I was decrypting a string using a different key than that used for encrypt. However, the error thrown was very misleading. Maybe, this is fixed with your new build now. I don't see this error now since I've fixed my code. |
Can you please revert changes and try it with new build ? It would be very helpful to analyze if new build can provide your more details about an error an stop crashing. Thanks |
I want to try and help but I've made too many changes since I reported the issue to roll back and test again. I'll keep you posted if I find any improvement in error logging. BTW, your wrong error never crashed my app, it only threw a confusing error message. Also, your library rocks...great job on that. It simplified my job a whole lot. Thanks for this. |
Glad that Scytale helped you and thanks for reporting this issue. Closing it. |
Can you pl tell me when I get this error? I've verified that the decrypt function is passed a valid string, it is not null
The text was updated successfully, but these errors were encountered: