Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-1036

@MapsTo with false value fails with Uncaught TypeError: java.lang.NullPointerException

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0.CR2
    • Fix Version/s: None
    • Component/s: ErraiMarshalling
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Create a @Portable class using @MapsTo constructor paramaters, using the wrong variable name, example :

      @Portable
      public class MyClass {

      private final int variable;

      public MyClass(@MapsTo("wrongValue") int variable)

      { this.variable = variable; }

      public int getVariable()

      { return variable; }

      }

      No error is logged on the server.

      The browser console, logs Uncaught TypeError: java.lang.NullPointerException with no other explination.

      Show
      Create a @Portable class using @MapsTo constructor paramaters, using the wrong variable name, example : @Portable public class MyClass { private final int variable; public MyClass(@MapsTo("wrongValue") int variable) { this.variable = variable; } public int getVariable() { return variable; } } No error is logged on the server. The browser console, logs Uncaught TypeError: java.lang.NullPointerException with no other explination.

      Gliffy Diagrams

        Attachments

          Activity

            People

            • Assignee:
              mbarkley Max Barkley
              Reporter:
              mjm.ent Mathieu Moloney
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: