Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5989

NPE when browsing files with JSON annotations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.3
    • None
    • java - Editor
    • None
    • MAC OSX:   10.15.7 (19H1323)

      64 GB RAM - 2.0 TB SSD

       

    Description

      [Update]  Just noticed that first line of class file is empty - blank line before the package declaration.  I edited the files to remove the blank lines in another editor and they opened without issues.

       

      When opening Java source files (generated by  jsonschema2pojo) the compiler displays multiple errors, claims duplicate class exists among other things, and the Null Pointer Exception is shown in the Notifications.  Sample code below.  Please see attached error report - note that it is too large for the entire report, only first 1100 lines shown.

       

      package io.yaxche.openproject.rest;

      import java.util.HashMap;
      import java.util.Map;
      import javax.annotation.Generated;
      import com.fasterxml.jackson.annotation.JsonAnyGetter;
      import com.fasterxml.jackson.annotation.JsonAnySetter;
      import com.fasterxml.jackson.annotation.JsonIgnore;
      import com.fasterxml.jackson.annotation.JsonInclude;
      import com.fasterxml.jackson.annotation.JsonProperty;
      import com.fasterxml.jackson.annotation.JsonPropertyOrder;

      @JsonInclude(JsonInclude.Include.NON_NULL)
      @JsonPropertyOrder(

      { "format", "raw", "html" }

      )
      @Generated("jsonschema2pojo")
      public class Description {

      Attachments

        Activity

          People

            Unassigned Unassigned
            bman Brenden Anderle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: