Dont throw error on empty data

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
Andrea Maria Piana 2018-03-27 06:20:29 +01:00 committed by Julien Eluard
parent 039ae7be59
commit e45c8f85f9
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ public class MainActivity extends ReactActivity
@Override
public void onNewIntent(final Intent intent) {
if (intent.getData().getScheme().startsWith("app-settings")) {
if (intent.getDataString() != null && intent.getData().getScheme().startsWith("app-settings")) {
startActivity(createNotificationSettingsIntent());
}
}