fix NPE
This commit is contained in:
parent
13a03c362b
commit
8b502c93c9
|
@ -102,7 +102,8 @@ public class ProfileFunctions {
|
|||
}
|
||||
|
||||
public boolean isProfileValid(String from) {
|
||||
return getProfile() != null && getProfile().isValid(from);
|
||||
Profile profile = getProfile();
|
||||
return profile != null && profile.isValid(from);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
|
Loading…
Reference in a new issue