NullPointerException in FromClause.findIntendedAliasedFromElementBasedOnCrazyJPARequirements due to null alias map key

Description

Got a NullPointerException in org.hibernate.hql.ast.tree.FromClause.findIntendedAliasedFromElementBasedOnCrazyJPARequirements(String) due to fromElementByClassAlias Map key being null.

Only for certain HQL query, along the lines of:

Removing IN(c.k.x) x or c.k.u = 'K' will not result in a NullPointerException, most likely due to no null alias key put into the map.

specifiedAlias param was "CURRENT_DATE" when findIntendedAliasedFromElementBasedOnCrazyJPARequirements was called.

Environment

Java version: 1.6.0_16,Sun Microsystems Inc.
Java VM: Java HotSpot(TM) 64-Bit Server VM 14.2-b01,Sun Microsystems Inc.
OS-System: Linux 2.6.25.14-69.fc8,amd64
Hibernate 3.2.4.sp1
JBosss-4.2.3.GA
DB2 v8 / JDBC Driver v4.7.85

Activity

Show:
Jürgen
March 3, 2010, 10:34 PM

sorry, should have searched. a duplicate

Steve Ebersole
March 21, 2011, 7:09 PM

Bulk closing stale resolved issues

Duplicate

Assignee

Unassigned

Reporter

Jürgen

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure