I'd like to preface this text with that I'm quite new to Clojure the world of functional programming and that it might just be that I'm not as good at comprehending the errors I'm thrown as I should be.
Which I found hard to interpret. I double checked and yes I did pass in both the plaintext password and the hash, why am I getting a NullPointerException thrown at me? None of them are nil and null belongs to the Java world.
As both you and I now know the error was because I had passed in the arguments in the wrong order. That is of course easy to fix on my end. The reason I bring this up is that perhaps this could be signalled better, perhaps there should be a nil check at some point in the hashers code where the substrings representing hash type is picked out?
Again I ask for forgiveness if this a wierd thing to request in the Clojure world, and wish you a fine evening my dear reader.
I'd like to preface this text with that I'm quite new to Clojure the world of functional programming and that it might just be that I'm not as good at comprehending the errors I'm thrown as I should be.
But I was writing some code along the lines of:
Calling the above threw the following stack trace at me:
Which I found hard to interpret. I double checked and yes I did pass in both the plaintext password and the hash, why am I getting a NullPointerException thrown at me? None of them are nil and null belongs to the Java world.
As both you and I now know the error was because I had passed in the arguments in the wrong order. That is of course easy to fix on my end. The reason I bring this up is that perhaps this could be signalled better, perhaps there should be a nil check at some point in the hashers code where the substrings representing hash type is picked out?
Again I ask for forgiveness if this a wierd thing to request in the Clojure world, and wish you a fine evening my dear reader.