title: Proper way to handle Android Studio's NullPointerException lint warning
body: <p>I'm new to android/java programming and am confused how to properly deal with this warning.</p>
  
  <blockquote>
    <p>Method invocation '' may produce 'Java.lang.NullPointerException'</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/pqQjh.png" alt="enter image description here"></p>
  
  <p>Should I be ussing assert to remove the warning?
  <img src="https://i.stack.imgur.com/zHLc9.png" alt="enter image description here"></p>
  
  <p>Or rather a runtime exception?
  <img src="https://i.stack.imgur.com/1wYJ6.png" alt="enter image description here"></p>
  
  <p>Any help would be appreciated.</p>