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

Fixed Bug causing #433 #476

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mehtasaurav
Copy link

@mehtasaurav mehtasaurav commented Mar 11, 2024

Fixed Bug causing #433
I think we are getting this bug because in java empty String is by default null. And in your code you are finding the length of null which in case will give NullPointerException. Please check this PR

@datomo
Copy link
Member

datomo commented Mar 12, 2024

Hey @mehtasaurav thank you for your contribution.

Two things:

  • Please move the check before the switch statement to remove the redundancy of the method.
  • Please use our official codestyle, to format your code.

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

Successfully merging this pull request may close these issues.

2 participants