Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Null pointer dereference #8

Open
stp32 opened this issue Apr 7, 2024 · 0 comments
Open

Possible Null pointer dereference #8

stp32 opened this issue Apr 7, 2024 · 0 comments

Comments

@stp32
Copy link

stp32 commented Apr 7, 2024

The code in Admin.Admin.getSupplierNames() contains a possible null pointer dereference where the variable "data" is dereferenced without first checking if it is null. This can cause potential crashes when the application is ran.

To reproduce:

  • Go to Admin.Admin.getSupplierNames() in the src/main/java folder
  • Go to line 834 and locate the "size" initialization
  • Identify that it doesn't check if "data" is null before using it

Expected: Variables should be checked if they're null before dereferencing to avoid potential NullPointerExceptions and ensure stability and reliability
Actual: The code doesn't check for null which may result in a crash under certain circumstances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant