Skip to content

Commit 6c42a8d

Browse files
Merge pull request #105 from ParsePlatform/richardross.push.unity.payload
[Unity] Fix crash in ParsePush.jar related to empty push payload.
2 parents 1b67b5a + dee301b commit 6c42a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ParsePush/src/main/java/com/parse/ParsePushService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public IBinder onBind(Intent intent) {
134134
protected void onPushNotificationReceived(String pushPayloadString) {
135135
Log.i(TAG, "Push notification received. Payload: " + pushPayloadString);
136136
try {
137-
if (!ParsePushUnityHelper.isApplicationPaused()) {
137+
if (!ParsePushUnityHelper.isApplicationPaused() && pushPayloadString != null) {
138138
UnityPlayer.UnitySendMessage("ParseInitializeBehaviour",
139139
"OnPushNotificationReceived",
140140
pushPayloadString);

0 commit comments

Comments
 (0)