title: StringIndexOutofBoundsException when trying to setBackgroundColor using a variable inside a Adapter
body: <p>When I try to place a String variable, with hexadecimal color inside to set the <code>setbackgroundcolor(Color.parseColor(String s))</code> of a edittext on my adapter class, it says</p>
  
  <blockquote>
    <p>StringIndexOutofBoundsException, length = 0, index = 0.</p>
  </blockquote>
  
  <p>When I insert the String inside the <code>parseColor</code> by hand, for example <code>parseColor("#ffffff");</code>, It works!</p>
  
  <p>My Adapter Class:</p>
  
  <pre><code>public class TasksAdapter extends ArrayAdapter&lt;Tasks&gt; {
      private Context sContext;
      private List&lt;Tasks&gt; taskData = new ArrayList&lt;&gt;();
      public TasksAdapter(@NonNull Context context, @SuppressLint("SupportAnnotationUsage") @LayoutRes ArrayList&lt;Tasks&gt; list){
          super(context, 0, list);
          sContext = context;
          taskData = list;
      }
      @NonNull
      @Override
      public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent){
          View listItem = convertView;
          if(listItem == null)
              listItem = LayoutInflater.from(sContext).inflate(R.layout.item_tasks, parent,false);
          final Tasks presenteTask = taskData.get(position);
          TextView taskTitle = (TextView) listItem.findViewById(R.id.tasksTitle);
          taskTitle.setText(presenteTask.getTitle());
          EditText taskColor = (EditText) listItem.findViewById(R.id.taskColor);
          taskColor.setBackgroundColor(Color.parseColor(presenteTask.getHexaColor()));
          return listItem;
      }
  }
  </code></pre>
  
  <p>The error:</p>
  
  <blockquote>
    <p>E/AndroidRuntime: FATAL EXCEPTION: main
        Process: com.example.mylcm, PID: 672
        java.lang.StringIndexOutOfBoundsException: length=0; index=0
            at java.lang.String.charAt(Native Method)
            at android.graphics.Color.parseColor(Color.java:1384)
            at com.example.mylcm.Utils.Adapters.TasksAdapter.getView(TasksAdapter.java:49)
            at android.widget.AbsListView.obtainView(AbsListView.java:2365)
            at android.widget.ListView.makeAndAddView(ListView.java:2052)
            at android.widget.ListView.fillDown(ListView.java:786)
            at android.widget.ListView.fillFromTop(ListView.java:847)
            at android.widget.ListView.layoutChildren(ListView.java:1826)
            at android.widget.AbsListView.onLayout(AbsListView.java:2164)
            at android.view.View.layout(View.java:19659)
            at android.view.ViewGroup.layout(ViewGroup.java:6075)
            at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)
            at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1780)
            at android.widget.LinearLayout.onLayout(LinearLayout.java:1546)
            at android.view.View.layout(View.java:19659)
            at android.view.ViewGroup.layout(ViewGroup.java:6075)
            at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1083)
            at android.view.View.layout(View.java:19659)
            at android.view.ViewGroup.layout(ViewGroup.java:6075)
            at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
            at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
            at android.view.View.layout(View.java:19659)
            at android.view.ViewGroup.layout(ViewGroup.java:6075)
            at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)
            at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)
            at android.widget.LinearLayout.onLayout(LinearLayout.java:1544)
            at android.view.View.layout(View.java:19659)
            at android.view.ViewGroup.layout(ViewGroup.java:6075)
            at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
            at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
            at android.view.View.layout(View.java:19659)
            at android.view.ViewGroup.layout(ViewGroup.java:6075)
            at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1791)
            at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1635)
            at android.widget.LinearLayout.onLayout(LinearLayout.java:1544)
            at android.view.View.layout(View.java:19659)
            at android.view.ViewGroup.layout(ViewGroup.java:6075)
            at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
            at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
            at com.android.internal.policy.DecorView.onLayout(DecorView.java:761)
            at android.view.View.layout(View.java:19659)
            at android.view.ViewGroup.layout(ViewGroup.java:6075)
            at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2496)
            at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2212)
            at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1392)
            at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6752)
            at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
            at android.view.Choreographer.doCallbacks(Choreographer.java:723)
            at android.view.Choreographer.doFrame(Choreographer.java:658)
            at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
            at android.os.Handler.handleCallback(Handler.java:790)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:164)
            at android.app.ActivityThread.main(ActivityThread.java:6494)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)</p>
  </blockquote>