SEC-880: Fix incorrect index value.

This commit is contained in:
Luke Taylor 2008-06-13 10:58:01 +00:00
parent 3e5b65bd85
commit 7d79ae5424
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class AuthenticationDetailsSourceImpl implements AuthenticationDetailsSou
Constructor constructor = null;
for (int i = 0; i < constructors.length; i++) {
Class[] parameterTypes = constructors[i].getParameterTypes();
if (parameterTypes.length == 1 && (object == null || parameterTypes[i].isInstance(object))) {
if (parameterTypes.length == 1 && (object == null || parameterTypes[0].isInstance(object))) {
constructor = constructors[i];
break;
}