wwtaourl / openid4java

Automatically exported from code.google.com/p/openid4java
0 stars 0 forks source link

NPE on JdbcConsumerAssociationStore #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Turn on JdbcConsumerAssociationStore
2. Try to associate with an OP and fail

What is the expected output? What do you see instead?
The code tries to store a failed association attempt with the OP but an NPE
occurs because the mackey of the associtation is NULL and:

JdbcConsumerAssociationStore:232 Base64.encodeBase64 (
association.getMacKey ( ).getEncoded ( ) ) ),

10:47:04,023 [ERROR] Error saving association to table: OpenIDAssociations
- org.openid4java.consumer.JdbcConsumerAssociationStore [TP-Processor3;
2009-02-23 10:47:04,023]
java.lang.NullPointerException
        at
org.openid4java.consumer.JdbcConsumerAssociationStore.save(JdbcConsumerAssociati
onStore.java:225)
        at
org.openid4java.consumer.ConsumerManager.associate(ConsumerManager.java:853)
        at
org.openid4java.consumer.ConsumerManager.authenticate(ConsumerManager.java:1039)

What version of the product are you using? On what operating system?
Latest rev.

Original issue reported on code.google.com by andrefcruz on 23 Feb 2009 at 11:05

GoogleCodeExporter commented 8 years ago
Here is a patch that corrects this issue.

Original comment by andrefcruz on 23 Feb 2009 at 11:31

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the patch! Fixed in rev566.

Original comment by Johnny.B...@gmail.com on 26 Feb 2009 at 8:44