-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Updated Broadcast receiver to do nothing if key is null #648
Conversation
@@ -49,6 +49,10 @@ public TestRunBroadRequestReceiver(PreferenceManager preferenceManager, EventLis | |||
public void onReceive(Context context, Intent intent) { | |||
String key = intent.getStringExtra("key"); | |||
String value = intent.getStringExtra("value"); | |||
// If either key is null, do nothing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you say "either": which other key should we be checking below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None.
app/src/main/java/org/openobservatory/ooniprobe/receiver/TestRunBroadRequestReceiver.java
Outdated
Show resolved
Hide resolved
…unBroadRequestReceiver.java
app/src/main/java/org/openobservatory/ooniprobe/common/service/RunTestService.java
Show resolved
Hide resolved
…/RunTestService.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐳
No description provided.