GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] NPE in TableNamesFinder in AnalyticExpression visitor · Issue #2443 · JSQLParser/JSqlParser

[BUG] NPE in TableNamesFinder in AnalyticExpression visitor #2443

New issue
Copy link
New issue
Copy link
Closed
#2444
Closed
[BUG] NPE in TableNamesFinder in AnalyticExpression visitor#2443
#2444
Copy link

Description

@davyboyhayes
davyboyhayes
opened on Jul 24, 2026
Issue body actions
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 AnalyticExpression:

        String sqlStr = "SELECT c, SUM(COUNT(*)) OVER (ORDER BY c ASC ROWS UNBOUNDED PRECEDING) FROM tbl GROUP BY c";

        assertThatCode(() -> TablesNamesFinder.findTables(sqlStr))
                .doesNotThrowAnyException();

Gives:

Expecting code not to raise a throwable but caught                                                                                                                                                                                                                                                                                                                                                                                          
  "java.lang.NullPointerException: Cannot invoke "net.sf.jsqlparser.expression.WindowRange.getStart()" because the return value of "net.sf.jsqlparser.expression.WindowElement.getRange()" is null 

Activity

  1. manticore-projects
    added a commit that references this issue on Jul 25, 2026

    [Fix] #2443 - NPE In TableNamesFinder with AnalyticExpression (#2444)

    5646842
  2. manticore-projects
    closed this as completedin #2444on Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.