When the value of a certain attribute is null, the framework throws NPE

Description

when using the NormalizingFilter , when one of the attribute values is null the StringFilter throws NullPointerException instead of skipping to the next record in the search

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 java.lang.NullPointerException at org.identityconnectors.framework.common.objects.filter.StringFilter.accept(StringFilter.java:66) at org.identityconnectors.framework.impl.api.local.operations.NormalizingFilter.accept(NormalizingFilter.java:58) at org.identityconnectors.framework.common.objects.filter.AndFilter.accept(AndFilter.java:60) at org.identityconnectors.framework.impl.api.local.operations.FilteredResultsHandler.handle(FilteredResultsHandler.java:62) at org.identityconnectors.framework.impl.api.local.operations.SearchImpl$1.handle(SearchImpl.java:128) at org.connid.bundles.db.table.DatabaseTableConnector.executeQuery(DatabaseTableConnector.java:757) at org.connid.bundles.db.table.DatabaseTableConnector.executeQuery(DatabaseTableConnector.java:1) at org.identityconnectors.framework.impl.api.local.operations.SearchImpl.rawSearch(SearchImpl.java:155) at org.identityconnectors.framework.impl.api.local.operations.SearchImpl.search(SearchImpl.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:98) at com.sun.proxy.$Proxy6.search(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.identityconnectors.framework.impl.api.local.operations.ThreadClassLoaderManagerProxy.invoke(ThreadClassLoaderManagerProxy.java:98) at com.sun.proxy.$Proxy6.search(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.identityconnectors.framework.impl.api.BufferedResultsProxy$BufferedResultsHandler.run(BufferedResultsProxy.java:158)

Environment

None

Status

Assignee

Francesco Chicchiriccò

Reporter

nisreen

Labels

None

Components

Fix versions

Affects versions

1.4.3.0

Priority

Minor
Configure