Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1403

NPE in GwtMetadata for @RooEntity(versionField = "")

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: 1.1.0.RC1
    • Fix Version/s: 1.1.0.RC1
    • Component/s: GWT, PERSISTENCE
    • Labels:
      None

      Description

      GwtMetadata.resolveEntityInformation(GwtMetadata.java:142) throws NPE trying to access entityMetadata.getVersionField() since there is no version field defined. By default DBRE annotates entities with @RooEntity(versionField = ""). At the same time EntityMetadata.getVersionField() return null in this case. This causes GwtMetadata to e caught with NPE.

        Attachments

          Activity

            People

            Assignee:
            amitmanjhi@google.com Amit Manjhi
            Reporter:
            romankuzmik Roman Kuzmik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: