title: not all code path return value?
body: <p>I am struggeling with this part of my code. Could you guys help me out ?  </p>
  
  <pre><code>static public async Task&lt;Artikelen&gt; getItems (string f = "")
      {
          await EnsureAccess();
          string filter = "&amp;$filter=substringof('" + f + "',Code)+eq+true";
          string orderby = "&amp;$orderby=Code+asc";
          Uri request = new Uri(Gegevens.BASE_URI + "/api/v1/" + CurrentDivision + "/logistics/Items?access_token=" + AccessToken + filter + orderby);
  
          HttpClient client = new HttpClient();
          client.DefaultRequestHeaders.Accept.Clear();
          client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
          //  client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/multipart/form-data"));
          client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/x-www-form-urlencoded"));
          HttpResponseMessage respons = await client.GetAsync(request);
          if (respons.IsSuccessStatusCode == false)
          {
              //await errorAlert("getSalesItemPrices Mislukt:  status = " + respons.StatusCode.ToString());
              return null;
          }
          respons.EnsureSuccessStatusCode();
          string responsecontent = await respons.Content.ReadAsStringAsync();
  
          //JArray results = JObject.Parse(responsecontent).GetValue("d")["results"].First.ToObject&lt;JArray&gt;();
          JArray results = JObject.Parse(responsecontent).GetValue("d")["results"].ToObject&lt;JArray&gt;();
      }
  </code></pre>
  
  <p>the error is in the JArray results  </p>
  
  <pre><code>JObject.Parse(responsecontent).GetValue("d")["results"].ToObject&lt;JArray&gt;();
  </code></pre>
  
  <p>I think is should return a value or something?</p>