Fix possible NPE in method equals (ParameterizedAssertionError)