diff --git a/app/src/main/java/com/example/avjindersinghsekhon/minimaltodo/Reminder/ReminderFragment.java b/app/src/main/java/com/example/avjindersinghsekhon/minimaltodo/Reminder/ReminderFragment.java
index 0d4ca7a0..d8e7c55f 100644
--- a/app/src/main/java/com/example/avjindersinghsekhon/minimaltodo/Reminder/ReminderFragment.java
+++ b/app/src/main/java/com/example/avjindersinghsekhon/minimaltodo/Reminder/ReminderFragment.java
@@ -14,6 +14,7 @@
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.TextView;
+import android.widget.Toast;
import com.example.avjindersinghsekhon.minimaltodo.Analytics.AnalyticsApplication;
import com.example.avjindersinghsekhon.minimaltodo.AppDefault.AppDefaultFragment;
@@ -85,7 +86,14 @@ public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
mSnoozeSpinner = (MaterialSpinner) view.findViewById(R.id.todoReminderSnoozeSpinner);
// mtoDoTextTextView.setBackgroundColor(item.getTodoColor());
- mtoDoTextTextView.setText(mItem.getToDoText());
+ if (mItem != null) {
+ mtoDoTextTextView.setText(mItem.getToDoText());
+ } else {
+ Toast.makeText(getContext(), getContext().getString(R.string.clicked_deleted_task_error_msg), Toast.LENGTH_SHORT).show();
+
+ Intent intent = new Intent(getContext(), MainActivity.class);
+ startActivity(intent);
+ }
if (theme.equals(MainFragment.LIGHTTHEME)) {
mSnoozeTextView.setTextColor(getResources().getColor(R.color.secondary_text));
diff --git a/app/src/main/res/layout/fragment_add_to_do.xml b/app/src/main/res/layout/fragment_add_to_do.xml
index 6f7fb117..f6afc306 100644
--- a/app/src/main/res/layout/fragment_add_to_do.xml
+++ b/app/src/main/res/layout/fragment_add_to_do.xml
@@ -22,7 +22,7 @@
android:id="@+id/editTextParentLinearLayout"
android:layout_width="match_parent"
android:layout_height="0dp"
- android:layout_weight=".5"
+ android:layout_weight=".8"
android:background="?attr/colorPrimary"
android:gravity="center"
android:orientation="vertical">
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index eca435ed..2680ea6e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -29,4 +29,5 @@
Snooze
Remove
Please enter a Todo
+ Task not found :(