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