1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-11 04:25:53 +00:00

Fix NullPointerException in onNewIntent()

This commit is contained in:
Martin Carpella 2016-01-23 21:58:21 +01:00
parent c280657861
commit 257032fd28

View file

@ -284,6 +284,10 @@ public class MainActivity extends SyncthingActivity
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
// intent's action will be null if notification is selected
if (intent.getAction() == null) {
return;
}
switch (intent.getAction()) {
case ACTION_ADD_DEVICE:
final String deviceId = intent.getStringExtra(EXTRA_DEVICE_ID);