title: RestClient throws NullPointerException?
body: <p>I m getting a NullpointerException but i dont even understand how is it possible.i just copy pasted the part RestTemplate restTemplate = this.restClient.getRestTemplate() from an other class but here i get a NullPointerException ?!</p>
  
  <pre><code>@Component
  public class ShowRestClient implements ShowService{
  
  @Autowired
  private RestClient restClient;
  @Override
  public List&lt;ShowDto&gt; getShowsByPerformanceID(int perfID)
          throws ServiceException {
      // TODO Auto-generated method stub
      return null;
  }
  @Override
  public List&lt;ShowDto&gt; findAllShows() throws ServiceException {
  
      RestTemplate restTemplate = this.restClient.getRestTemplate();(!!!!! HERE)
      String url = this.restClient.createServiceUrl("/show/");
      HttpEntity&lt;String&gt; entity = new HttpEntity&lt;String&gt;(this.restClient.getHttpHeaders());
      List&lt;ShowDto&gt; shows = null;
      try {
          ParameterizedTypeReference&lt;List&lt;ShowDto&gt;&gt; ref = new ParameterizedTypeReference&lt;List&lt;ShowDto&gt;&gt;() {};
          ResponseEntity&lt;List&lt;ShowDto&gt;&gt; response = restTemplate.exchange(URI.create(url), HttpMethod.GET, entity, ref);
          shows = response.getBody();
      } catch (RestClientException e) {
          throw new ServiceException("Could not retrieve shows: " + e.getMessage(), e);
      }
  return shows;
  }
  </code></pre>