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

Fix null exception in ExpressionVisitorAdapter with simple INTERVAL expression #2133

Conversation

tomershay
Copy link
Contributor

ExpressionVisitorAdapter was throwing a NullPointerException when a simple INTERVAL expression was provided, which didn't contain an actual expression (.getExpression() returns null).

Sample expression that causes the issue: INTERVAL 1 DAY

This PR adds validation around that code to fix this issue.

@tomershay tomershay force-pushed the fix_expression_adapter_simple_interval_expression branch from 82186dc to ec9a69f Compare December 28, 2024 09:22
@manticore-projects
Copy link
Contributor

Thank you @tomershay for fixing this, much appreciated!

@manticore-projects manticore-projects merged commit d9acb5f into JSQLParser:master Dec 28, 2024
1 of 2 checks passed
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