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 in documentColor #1473

Closed
datho7561 opened this issue Jan 31, 2023 · 0 comments · Fixed by #1501
Closed

NullPointerException in documentColor #1473

datho7561 opened this issue Jan 31, 2023 · 0 comments · Fixed by #1501
Assignees
Labels
bug Something isn't working
Milestone

Comments

@datho7561
Copy link
Contributor

datho7561 commented Jan 31, 2023

Given the XML document:

<aaa>
  <color hex=></color>
</aaa>

and the configuration:

"xml.colors": [
  {
    "expressions": [
      {
        "xpath": "color/@hex"
      }
    ],
    "pattern": "**.xml"
  }
],

You will get an NPE logged in the server trace.

@datho7561 datho7561 added the bug Something isn't working label Jan 31, 2023
@datho7561 datho7561 changed the title NPE in `documentColor NullPointerException in `documentColor Jan 31, 2023
@datho7561 datho7561 changed the title NullPointerException in `documentColor NullPointerException in documentColor Jan 31, 2023
@datho7561 datho7561 self-assigned this Mar 7, 2023
@datho7561 datho7561 moved this to 📋 Sprint Backlog in IDE Cloudaptors Mar 7, 2023
angelozerr added a commit to angelozerr/lemminx that referenced this issue Mar 8, 2023
@angelozerr angelozerr assigned angelozerr and unassigned datho7561 Mar 8, 2023
@angelozerr angelozerr added this to the 0.25.0 milestone Mar 8, 2023
@angelozerr angelozerr moved this from 📋 Sprint Backlog to 👀 In review in IDE Cloudaptors Mar 8, 2023
angelozerr added a commit to angelozerr/lemminx that referenced this issue Mar 9, 2023
angelozerr added a commit that referenced this issue Mar 10, 2023
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in IDE Cloudaptors Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants