title: java.io.EOFException RecycleView
body: <p>I'm trying to parse a json file from an API and as argument in the request http I take the text field of a recycleview item</p>
  
  <p>I make a toast to see if I recover the field text and indeed I recover it well</p>
  
  <p>but when I run the http request I have an "java.io.EOFException" exception.</p>
  
  <p>I tried to run the same request but instead of retrieving the text field I put the name directly in the request</p>
  
  <p>but when I run the http request I have an "java.io.EOFException" exception.</p>
  
  <p>I tried to run the same request but instead of retrieving the text field I put the name directly in the request</p>
  
  <p>When I searched, I found that apparently the text field is null and that's why the query returns an exception but when I test with my toast it's wrong the field is not null!</p>
  
  <p>that's how I get back the text field</p>
  
  <pre><code>public void onClick(View view) {
          String nom =  getItem(getAdapterPosition()) ;
          Toast.makeText(AppContext.getContext(),"string ; "+nom,Toast.LENGTH_LONG).show(); 
      }
  </code></pre>
  
  <p>so if for example in my request http i put like this</p>
  
  <pre><code>    http="........&amp;nom=Canada........."
  </code></pre>
  
  <p>it's working</p>
  
  <p>bt if i lanch my request like this</p>
  
  <pre><code>  String nom = getItem(getAdapterPosition()) ; // Canada
    http="..........&amp;nom="+nom+"........"
  </code></pre>
  
  <p>it's not working </p>