title: Method invocation may produce NullPointerException Retrofit Body
body: <p>I am using Retrofit 2 for get response from my API and store its value in my constant like below</p>
  <pre><code>if(response.isSuccessful()) {
                      constant.banner_on = response.body().getBanner_on();
                      constant.int_on = response.body().getInt_on();
                      constant.int_click = response.body().getInt_click();
                  }
  </code></pre>
  <p>It's giving me warning on all three like below</p>
  <blockquote>
  <p>Method invocation getBanner_on may produce java.lang.nullPointerException</p>
  </blockquote>
  <p>I am confused and unable to resolve this warning. Let me know if someone can help me to come out from this.</p>