Commit ecd25bad authored by Thomas's avatar Thomas
Browse files

Fix #1043 - Fix a crash when adding a followed tag in empty list

parent 13946fe5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ public class FollowedTagActivity extends BaseBarActivity implements FollowedTagA
            popupAddFollowedTagtBinding.addTag.setFilters(new InputFilter[]{new InputFilter.LengthFilter(255)});
            dialogBuilder.setPositiveButton(R.string.validate, (dialog, id) -> {
                String name = Objects.requireNonNull(popupAddFollowedTagtBinding.addTag.getText()).toString().trim();
                if (tagList.contains(new Tag(name))) {
                if (tagList != null && tagList.contains(new Tag(name))) {
                    Toasty.error(FollowedTagActivity.this, getString(R.string.tag_already_followed), Toasty.LENGTH_LONG).show();
                    return;
                }