Commit c04e0eda authored by Matt Tucker's avatar Matt Tucker Committed by matt

Added better null handling.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4418 b35dd754-fafc-0310-a699-88a17e54d16e
parent 871385e1
......@@ -174,6 +174,9 @@ public class AuthFactory {
* for example, during setup mode.
*/
public static String encryptPassword(String password) {
if (password == null) {
return null;
}
Blowfish cipher = getCipher();
if (cipher == null) {
throw new UnsupportedOperationException();
......@@ -192,6 +195,9 @@ public class AuthFactory {
* for example, during setup mode.
*/
public static String decryptPassword(String encryptedPassword) {
if (encryptedPassword == null) {
return null;
}
Blowfish cipher = getCipher();
if (cipher == null) {
throw new UnsupportedOperationException();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment