This article is an example of a Project or Chapter Page. We recently migrated our community to a new web platform and regretably the content for this page needed to be programmatically ported from its previous wiki page. The following code does not check to see if the string returned by getParameter() is null before calling the member function compareTo() potentially causing a null dereference. This article includes the OASP ASDR Project and the code responsible for the vulnerability. The code is described as the “OWASP Project””]
Source: https://owasp.org/www-community/vulnerabilities/Unchecked_Return_Value_Missing_Check_against_Null