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

NullPointerException When Input Field Is Left Empty in ChartRedrawView #143

Open
jturfanbasis opened this issue Dec 18, 2024 · 0 comments
Open
Assignees

Comments

@jturfanbasis
Copy link

jturfanbasis commented Dec 18, 2024

Description

When entering a blank value (null) in any of the input fields (e.g., Instagram, Twitter, Facebook, LinkedIn) and clicking the "Redraw Chart" button, the application throws a java.lang.NullPointerException. The input validation for empty fields is missing.

Additionally, the input fields accept invalid inputs such as only -or + (which are not numbers). Clicking the button causes the application to throw the same exception.

Steps to Reproduce

  1. Navigate to the page googlecharts > types > ChartRedrawView.java
  2. Delete the value in any input field (e.g., "Value for Instagram") so that it becomes blank.
  3. Click the "Redraw Chart" button.
  4. Observe the application behavior.

Expected Behavior

The application should validate the input fields and display an appropriate error message when the field is left blank. The application should not throw an exception.

image

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

2 participants