Where there are multiple JXPath functions with the same name, each accepting a different type, passing null generates an exception e.g.:
To prevent this, method overloading should be avoided. A single method should be provided taking an Object that then switches on the argument type to delegate to the specific implementation.