Closed zmashiah closed 9 years ago
Not reproduced with Scala version.
I was unable to reproduce this with any of the sample apps. I'll close this but please re-open if still facing the issue.
Turns out this is happening in our app as well. It was not clear, but apparently implementations of the abstract method doFindToken(token) must never return null. If the token is not found or removed as was used to complete registration before then I made my method return a Promise.pure of Token to which I set expiration to now:
@Override
public Promise
private Promise
For the record, the scenario we could reproduce this was: Sign up In your inbox mail, press the complete registration Do complete the registration Go back to email message and press the complete registration again.
The scenario is easy to reproduce:
Caused by: java.lang.NullPointerException: null at securesocial.core.java.BaseUserService.findToken(BaseUserService.java:149) ~[securesocial_2.11-master-SNAPSHOT.jar:master-SNAPSHOT] at securesocial.controllers.MailTokenBasedOperations.executeForToken(MailTokenBasedOperations.scala:78) ~[securesocial_2.11-master-SNAPSHOT.jar:master-SNAPSHOT] at securesocial.controllers.BaseRegistration$$anonfun$signUp$1.apply(Registration.scala:138) ~[securesocial_2.11-master-SNAPSHOT.jar:master-SNAPSHOT] at securesocial.controllers.BaseRegistration$$anonfun$signUp$1.apply(Registration.scala:136) ~[securesocial_2.11-master-SNAPSHOT.jar:master-SNAPSHOT]