title: Should a API throw NullPointerExceptions
body: <p>I use a commerical API and had a <code>NullpointException</code> coming from the API code.</p>
  
  <p>The support tells me that it is expected because one of the input-parameters of the method I called was <code>null</code> and this parameter is needed to use the methdod.</p>
  
  <p>Is this really my fault because I haven't checked the parameters before passing them to the API?</p>
  
  <p>Isn't it bad practice to let <code>NullpointerExceptions</code> out of your API? If not I would have to check for all kind of <code>RuntimeExceptions</code> if I use a method of that API if I want to make sure my software doesn't crash.</p>
  
  <p>If it is bad practice, are there any documents or specifications which refer to this?</p>