Uploaded image for project: 'Commons Modeler'
  1. Commons Modeler
  2. MODELER-11

[modeler] Null Pointer Exception - Non-Singleton Registry

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      34063

      Description

      There are many instance methods in the Registry class that still refer to the
      static singleton registry instance (registerComponent, findManagedBean, etc).
      This will end up causing a Null Pointer exception in applications that never
      instantiate the singleton instance (through getRegistry). In containers that
      mix singleton and non-signleton instances, the behavior would be unexpected.
      I'm using the latest release, but from the looks of the HEAD in CVS this problem
      still exists (line 816 for example).

      It should be a pretty straight forward fix - search for the static registry
      references, and if it's an instance method, replace 'registry' with 'this'
      keyword.

      Since the Singleton Registry is deprecated (and for good reason , this should
      be considered a high priority issue.

      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mstanley@mstanley.net Mike Stanley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: