DeepSource has joined Harness. Learn more
Java logoJava/
JAVA-S0109

Method does not check if an argument is nullJAVA-S0109

Critical severityCritical
Bug Risk categoryBug Risk

A parameter to this method has been identified as a value that should always be checked to see whether or not it is null, but it is being dereferenced without a preceding null check.

This can very easily lead to null pointer exceptions in your code, and must be avoided without exception.

Always perform null checks on values that could be null when they are passed to methods.