I am using Java reflection as such:

```
try {
    method.invoke(someObject);
  } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException | NullPointerException e) {
    //Do something
  }

```

`method` is retrieved from iterating through `getMethods()` from `"Set<Method> getMethods = new HashSet<Method>(Arrays.asList(curObject.getClass().getMethods()))"`

`someObject` is not *null*, but within the method call it makes a call to something that results in a `NullPointerException`. 

However, the code still errors out with a `NullPointerException` with the stack trace pointing back to "method.invoke(someObject);".

Why doesn't the *catch* work? Has it something to do with reflection?