Problem bookmarking with mydapps in browser
- Go to browser tab
- Navigate to any page (eg twitter.com)
- Tap "..." in top right corner, then "Add to My DApps"
  - Title: "Twitter. It's what's happening / Twitter"
  - Address: "https://mobile.twitter.com/"
- Change Title and/or URL, tap done
- Tap "Add" (returns to twitter)
- Tap Browser tab, shows original text. Expect: changed title
- Tap twitter icon, goes to original URL. Expect: changed URL
diff --git a/app/src/main/java/com/alphawallet/app/ui/AddEditDappActivity.java b/app/src/main/java/com/alphawallet/app/ui/AddEditDappActivity.java
index c41e94a4c..f93b6fd85 100644
--- a/app/src/main/java/com/alphawallet/app/ui/AddEditDappActivity.java
+++ b/app/src/main/java/com/alphawallet/app/ui/AddEditDappActivity.java
@@ -78,7 +78,10 @@ public class AddEditDappActivity extends BaseActivity {
                 button.setText(R.string.action_add);
                 name.setText(dapp.getName());
                 url.setText(dapp.getUrl());
-                button.setOnClickListener(v -> add(dapp));
+                button.setOnClickListener(v -> {
+                    dapp.setName(name.getEditableText().toString());
+                    dapp.setUrl(url.getEditableText().toString());
+                    add(dapp); });
                 break;
             }
             case MODE_EDIT: {
@@ -86,7 +89,9 @@ public class AddEditDappActivity extends BaseActivity {
                 button.setText(R.string.action_save);
                 url.setText(dapp.getUrl());
                 name.setText(dapp.getName());
-                button.setOnClickListener(v -> save(dapp));
+                button.setOnClickListener(v -> {
+                    save(dapp);
+                });
                 break;
             }
             default: {
diff --git a/app/src/main/java/com/alphawallet/app/ui/DappBrowserFragment.java b/app/src/main/java/com/alphawallet/app/ui/DappBrowserFragment.java
index 6f4fb2992..d7741dd3c 100644
--- a/app/src/main/java/com/alphawallet/app/ui/DappBrowserFragment.java
+++ b/app/src/main/java/com/alphawallet/app/ui/DappBrowserFragment.java
@@ -345,7 +345,8 @@ public class DappBrowserFragment extends Fragment implements OnSignTransactionLi
         else
         {
             attachFragment(dappHomeFragment, DAPP_HOME);
-            urlTv.getText().clear();
+            if (urlTv != null)
+                urlTv.getText().clear();
             if (web3 != null)
                 web3.stopLoading();
         }
['app/src/main/java/com/alphawallet/app/ui/AddEditDappActivity.java', 'app/src/main/java/com/alphawallet/app/ui/DappBrowserFragment.java']