MCRCommand throw NPE if command method is not static

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.

Environment

None

Assignee

Thomas Scheffler

Reporter

Thomas Scheffler

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Priority

Medium
Configure