Author: ruchith
Date: Tue Dec 11 05:43:23 2007
New Revision: 10975
Log:
Added an NPE check
Modified:
branches/solutions/identity/1.0/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/Initializer.java
Modified:
branches/solutions/identity/1.0/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/Initializer.java
==============================================================================
---
branches/solutions/identity/1.0/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/Initializer.java
(original)
+++
branches/solutions/identity/1.0/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/Initializer.java
Tue Dec 11 05:43:23 2007
@@ -372,7 +372,7 @@
EmailVerifierConfig config = new EmailVerifierConfig();
config.setFromAddress(fromAddress);
config.setHost(host);
- if (username.length() != 0) {
+ if (username != null && username.length() != 0) {
config.setPassword(password);
config.setUsername(username);
}
_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev