Browse Source

Merge pull request #181 in BA/design from ~VITO/design:master to master

* commit '6f425d379c236404bf4a2329174f3dc6afb9ce94':
  登陆username为空时的npe问题
master
superman 9 years ago
parent
commit
4dc7376a68
  1. 3
      designer/src/com/fr/design/mainframe/bbs/BBSLoginDialog.java

3
designer/src/com/fr/design/mainframe/bbs/BBSLoginDialog.java

@ -279,8 +279,10 @@ public class BBSLoginDialog extends UIDialog {
* @return 同上
*/
public static boolean login(String username, String password) {
if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {
try {
username = URLEncoder.encode(username, EncodeConstants.ENCODING_GBK);
password = URLEncoder.encode(password, EncodeConstants.ENCODING_GBK);
} catch (UnsupportedEncodingException e) {
FRLogger.getLogger().error(e.getMessage());
}
@ -297,6 +299,7 @@ public class BBSLoginDialog extends UIDialog {
FRLogger.getLogger().error(e.getMessage());
}
}
}
return false;
}

Loading…
Cancel
Save