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:
parent
c280657861
commit
257032fd28
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue