title: How to resolve findbug issue: Null passed for nonnull parameter
body: <p>I'm getting the following findbugs error: </p>
  
  <p><strong>"Method call passes null for nonnull parameter : Null passed for nonnull parameter of getApiStatus(ApiResponse)"</strong></p>
  
  <p>If the apiResponse is null in the CallApi method (not shown here for brevity's sake), it simply throws an exception that is caught in handleApiException and thrown again if we can't do anything else about the exception.  </p>
  
  <p>There is no way that a null value for apiResponse could be passed into getApiStatus() method at the botton of this code snippit.  How can I tell findbugs that this is the case without doing yet another null check on top of the null check that is done in the apiService.CallApi method? I've tried using the NonNull annotation, but that didn't resolve the issue.  Here's the code in question:</p>
  
  <pre><code>ApiResponse apiResponse = null;
  try {
      apiResponse = apiService.CallApi(apiURL, requestObject);
  }
  catch (ApiException ex) {
      handleApiException(ex);
  }
  
  boolean apiStatus = getApiStatus(apiResponse);
  </code></pre>
  
  <p>Any Ideas?</p>