stop crashes when sending sms

// FREEBIE
This commit is contained in:
Jake McGinty 2014-11-15 02:14:37 +03:00
parent 43adc75428
commit 31b9dcb5eb

View File

@ -69,6 +69,10 @@ public class JobManager implements RequirementListener {
}
public RequirementProvider getRequirementProvider(String name) {
if (requirementProviders == null || requirementProviders.isEmpty()) {
return null;
}
for (RequirementProvider provider : requirementProviders) {
if (provider.getName().equals(name)) {
return provider;