Fixes NPE on forceRegister (Fixes #473)

This commit is contained in:
games647 2016-01-28 11:43:08 +01:00
parent 678891d0b8
commit 0b4ddce3c4

View File

@ -75,7 +75,7 @@ public class AsyncRegister {
if (!preRegisterCheck()) {
return;
}
if (!email.isEmpty() && !email.equals("")) {
if (email != null && !email.isEmpty()) {
emailRegister();
} else {
passwordRegister();