title: Adding strings to stringArray android
body: <p>i've problem when adding  string to a stringArray. It crashes every time:</p>
  
  <pre><code>ArrayList&lt;String&gt; newString, limits;
  
      String pruebas;     
      pruebas=e1.getText().toString();
      if (pruebas == null || pruebas.equals("")) {
          Toast.makeText(Limits.this, "You did not enter a number", Toast.LENGTH_SHORT).show();
          return;
      }
      else{
          limits.add(pruebas);
      }
  </code></pre>
  
  <p>Any help would be appreciated!</p>
  
  <p>Thankyou</p>