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