Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-27497

NPE will computing the JSON schema when WWD is not installed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.18.0.AM1
    • 4.17.0.Final
    • quarkus
    • None
    • Sprint #191 Oct 2020
    • 3
    • Undefined
    • ---

      When WWD is not installed, it causes the JSON schema computation to fail in NPE:

       

       
      java.lang.NullPointerException
       at org.jboss.tools.quarkus.lsp4e.internal.yaml.SchemaRegistry.lambda$0(SchemaRegistry.java:127)
       at java.base/java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1603)
       at org.jboss.tools.quarkus.lsp4e.internal.yaml.SchemaRegistry.schemas2YAMLLSMap(SchemaRegistry.java:127)
       at org.jboss.tools.quarkus.lsp4e.internal.yaml.SchemaRegistry.sendInitialize(SchemaRegistry.java:113)
       at org.jboss.tools.quarkus.lsp4e.internal.yaml.SchemaRegistry.updateYAMLLanguageServerConfigIfRequired(SchemaRegistry.java:94)
       at org.jboss.tools.quarkus.lsp4e.internal.yaml.SchemaRegistry.updateYAMLLanguageServerConfigIfRequired(SchemaRegistry.java:102)
       at org.jboss.tools.quarkus.lsp4e.QuarkusYAMLDocumentSetupParticipant$1.run(QuarkusYAMLDocumentSetupParticipant.java:50)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      

       

              jmaury@redhat.com Jeff MAURY
              jmaury@redhat.com Jeff MAURY
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: