]
Pete Muir updated JBSEAM-2173:
------------------------------
Fix Version/s: (was: 1.2.1.GA)
Affects Version/s: 1.2.1.GA
enableFilter: for ( Map.Entry<String, ValueExpression> me:
f.getParameters().entrySet() ) throws NPE if there're no parameters
------------------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-2173
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2173
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 1.2.1.GA
Reporter: jarkko Lietolahti
In components.xml
<core:filter name="deletedFilter">
<core:name>deletedFilter</core:name>
</core:filter>
will cause NPE in f.getParameters().entrySet()
HibernatePersistenceProvider:
@Override
public void enableFilter(Filter f, EntityManager entityManager)
{
try
{
org.hibernate.Filter filter = getSession(entityManager).enableFilter(
f.getName() );
for ( Map.Entry<String, ValueExpression> me: f.getParameters().entrySet()
)
{
filter.setParameter( me.getKey(), me.getValue().getValue() );
}
filter.validate();
}
catch (NotHibernateException nhe)
{
super.enableFilter(f, entityManager);
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: