Storing hashed passwords

I have been stuck on this for quite some time, hopefully someone will have some insight. I have implemented Spring security extending the VaadinWebSecurityAdapter, I can login successfully if I use a bcrypt generator to generate the hash. When I attempt to save it from within the application the generated hash doesn’t match the password I entered and therefore I get an incorrect password.

Can you share your code? It’s difficult to say what may be wrong without it

I got it figured out, it was an error with setting the value and therefore was saving an hashed null