Title: [BUG] NPE in TableNamesFinder in AnalyticExpression visitor · Issue #2443 · JSQLParser/JSqlParser · GitHub
Open Graph Title: [BUG] NPE in TableNamesFinder in AnalyticExpression visitor · Issue #2443 · JSQLParser/JSqlParser
X Title: [BUG] NPE in TableNamesFinder in AnalyticExpression visitor · Issue #2443 · JSQLParser/JSqlParser
Description: SELECT c, SUM(COUNT(*)) OVER (ORDER BY c ASC ROWS UNBOUNDED PRECEDING) FROM tbl GROUP BY c The window element here does not contain a range or an offset, yet this will throw an NPE in TableNamesFinder when it tries to walk the AnalyticEx...
Open Graph Description: SELECT c, SUM(COUNT(*)) OVER (ORDER BY c ASC ROWS UNBOUNDED PRECEDING) FROM tbl GROUP BY c The window element here does not contain a range or an offset, yet this will throw an NPE in TableNamesFin...
X Description: SELECT c, SUM(COUNT(*)) OVER (ORDER BY c ASC ROWS UNBOUNDED PRECEDING) FROM tbl GROUP BY c The window element here does not contain a range or an offset, yet this will throw an NPE in TableNamesFin...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/2443
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] NPE in TableNamesFinder in AnalyticExpression visitor","articleBody":"```sql\nSELECT c, SUM(COUNT(*)) OVER (ORDER BY c ASC ROWS UNBOUNDED PRECEDING) FROM tbl GROUP BY c\n```\nThe window element here does not contain a range or an offset, yet this will throw an NPE in TableNamesFinder when it tries to walk the AnalyticExpression:\n\n```java\n String sqlStr = \"SELECT c, SUM(COUNT(*)) OVER (ORDER BY c ASC ROWS UNBOUNDED PRECEDING) FROM tbl GROUP BY c\";\n\n assertThatCode(() -> TablesNamesFinder.findTables(sqlStr))\n .doesNotThrowAnyException();\n```\n\nGives:\n```\nExpecting code not to raise a throwable but caught \n \"java.lang.NullPointerException: Cannot invoke \"net.sf.jsqlparser.expression.WindowRange.getStart()\" because the return value of \"net.sf.jsqlparser.expression.WindowElement.getRange()\" is null \n```","author":{"url":"https://github.com/davyboyhayes","@type":"Person","name":"davyboyhayes"},"datePublished":"2026-07-24T12:03:32Z","url":"https://github.com/JSQLParser/JSqlParser/issues/2443"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fabda2dd-f312-ce17-e42f-4cdd6db7add3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2A8:34C31:1243ED:197546:6B049197 |
| html-safe-nonce | aa0224dbf8fd19724772582fe5bbe23a05065fcddcad6896107f6cd5d7590806 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkE4OjM0QzMxOjEyNDNFRDoxOTc1NDY6NkIwNDkxOTciLCJ2aXNpdG9yX2lkIjoiMzYzMzI5OTc3MDYxNzczNzE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5ed2aa22cdcf5df1ad5b7991e83a1d3296c0bbb5b723eec90b563699f779c1ff |
| hovercard-subject-tag | issue:4968233562 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSQLParser/JSqlParser/2443/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac0e1556ff610635128f26489cb93537b86c452f6858b9bcbb2e6064f316c72f/JSQLParser/JSqlParser/issues/2443 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac0e1556ff610635128f26489cb93537b86c452f6858b9bcbb2e6064f316c72f/JSQLParser/JSqlParser/issues/2443 |
| og:image:alt | SELECT c, SUM(COUNT(*)) OVER (ORDER BY c ASC ROWS UNBOUNDED PRECEDING) FROM tbl GROUP BY c The window element here does not contain a range or an offset, yet this will throw an NPE in TableNamesFin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davyboyhayes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| turbo-cache-control | no-preview |
| go-import | github.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git |
| octolytics-dimension-user_id | 4643847 |
| octolytics-dimension-user_login | JSQLParser |
| octolytics-dimension-repository_id | 1944709 |
| octolytics-dimension-repository_nwo | JSQLParser/JSqlParser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1944709 |
| octolytics-dimension-repository_network_root_nwo | JSQLParser/JSqlParser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width