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

Signature Is Null #81

Open
cmcfatter opened this issue Jun 14, 2021 · 0 comments
Open

Signature Is Null #81

cmcfatter opened this issue Jun 14, 2021 · 0 comments

Comments

@cmcfatter
Copy link

cmcfatter commented Jun 14, 2021

I am trying to use the provided UI for the quickchip transactions and after I write a signature it is not being saved in the result. Because of this I have been trying to make the app with my own UI but that has had its own share of problems. If I could obtain this signature it would enable me to just use the provided UI instead.

Here is my code for retrieving the signature:
try {
byte[] decodedString = Base64.decode(result.getSignatureBase64().getBytes(), Base64.DEFAULT);
Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);
} catch (Exception e) {
e.printStackTrace();
}

The error is java.lang.NullPointerException: Attempt to invoke virtual method 'byte[]java.lang.String.getBytes()' 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
Development

No branches or pull requests

1 participant