mirror of
https://github.com/readrops/Readrops.git
synced 2025-02-08 07:58:41 +01:00
Check if action isn't null before testing its value
This commit is contained in:
parent
d6d2b76213
commit
9b0e13e069
@ -134,7 +134,7 @@ public class AddFeedActivity extends AppCompatActivity implements View.OnClickLi
|
||||
feedsToUpdate = new ArrayList<>();
|
||||
|
||||
// new feed intent
|
||||
if (getIntent().getAction().equals(Intent.ACTION_SEND)) {
|
||||
if (getIntent().getAction() != null && getIntent().getAction().equals(Intent.ACTION_SEND)) {
|
||||
String text = getIntent().getStringExtra(Intent.EXTRA_TEXT);
|
||||
binding.addFeedTextInput.setText(text);
|
||||
onClick(binding.addFeedLoad);
|
||||
|
Loading…
x
Reference in New Issue
Block a user