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 on every incoming message #11

Open
chookly314 opened this issue Jul 24, 2020 · 2 comments
Open

NullPointerException on every incoming message #11

chookly314 opened this issue Jul 24, 2020 · 2 comments

Comments

@chookly314
Copy link

Hello,

First of all, thanks for your effort in maintaining this repository.

I've recently started to get an error on every incoming message from the server (last week I would say, although I am not sure because I've been on vacations). After some debugging, the issue seems to be caused by incoming messages not having the field "as_der" in "data" -> "leaf_cert" -> "as_der", which causes a null pointer in CertStreamCertificate.java, line 37, if statement.

I imagine this is due to a recent change in the message format. My current workaround is to surround the above-mentioned if statement with a pojo.asDer != null check, but I am not sure if that would be the optimal solution.

I would appreciate if you could take a look at the error and provide me some feedback.

Thanks in advance!

@DexterNano
Copy link

with
"My current workaround is to surround the above-mentioned if statement with a pojo.asDer != null check, but I am not sure if that would be the optimal solution."
Do you mean:

if(pojo.asDer != null){
if (pojo.asDer.isEmpty())
{
return null;
}
}
?

Because this does not work for me

@chookly314
Copy link
Author

Hi,

Yes, that is the code I am using for the moment. Are you getting a different error?

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