提交 bc377308 编写于 作者: D david_calavera

fixes 2376: NPE when completing the user signup for a new user account


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12277 71c3de6d-444a-0410-be80-ed276b4c234a
上级 b090d3b8
......@@ -122,10 +122,10 @@ public class HudsonPrivateSecurityRealm extends SecurityRealm implements ModelOb
if(selfRegistration && !validateCaptcha(si.captcha))
si.errorMessage = "Text didn't match the word shown in the image";
if(!si.password1.equals(si.password2))
if(si.password1 != null && !si.password1.equals(si.password2))
si.errorMessage = "Password didn't match";
if(si.password1.length()==0)
if(!(si.password1 != null && si.password1.length() != 0))
si.errorMessage = "Password is required";
if(si.username.length()==0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册