Uploaded image for project: 'MyCoRe'
  1. MCR-934

MCRCommand throw NPE if command method is not static

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2015.05.0
    • Component/s: mycore-base
    • Labels:
      None

      Description

      Our method invocation relies on the fact that static methods can be invoked without an instance of the class. Currently we do not check if methods are really static (programming error) and hence a NullPointerException is thrown when we invoke that method on a null object.

      We should give a nice error message when the MCRCommand is initialized, so that errors could be found more easily.

        Attachments

          Activity

            People

            • Assignee:
              yagee Thomas Scheffler
              Reporter:
              yagee Thomas Scheffler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: