Skip to content
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

Add null checking for push raw data #261

Merged

Conversation

wangmengyan95
Copy link
Contributor

#260, we get some exceptions from developers about getting null push raw data. Not sure why this happen but it make sense to add some null checking.

@facebook-github-bot
Copy link

By analyzing the blame information on this pull request, we identified @grantland to be a potential reviewer.

@hallucinogen
Copy link
Contributor

nice one

wangmengyan95 added a commit that referenced this pull request Nov 23, 2015
…ing_for_push_raw_data

Add null checking for push raw data
@wangmengyan95 wangmengyan95 merged commit c08310b into master Nov 23, 2015
@wangmengyan95 wangmengyan95 deleted the wangmengyan.add_null_checking_for_push_raw_data branch November 23, 2015 19:29
@@ -136,9 +136,15 @@ public void onReceive(Context context, Intent intent) {
* An {@code Intent} containing the channel and data of the current push notification.
*/
protected void onPushReceive(Context context, Intent intent) {
String pushDataStr = intent.getStringExtra(KEY_PUSH_DATA);
if (pushDataStr == null) {
PLog.e(TAG, "Can not get push data from intent.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Can not get/Unable to read/g

@grantland grantland modified the milestone: 1.11.1 Dec 17, 2015
@facebook-github-bot
Copy link

@wangmengyan95 updated the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants