Hi all,
Our tool has found several potential NPE bugs.
In method resolveGetterConflicts If the variable winnerMethod winner = null; is set to null and List<Method> is empty. Then addGetMethod(propName, winner, isAmbiguous); will be executed and variable winner is null. These are several uses of the variable in method addGetMethod, which may cause NullPointerException.
Thanks.
Comment From: harawata
This is about org.apache.ibatis.reflection.Reflector, right?
I think List<Method> can never be empty. See addMethodConflict().
If you still think it can throw NullPointerException, please provide an example class that reproduces the exception.
Comment From: harawata
No response.