Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Fix for bug 344492 checked in

Bug 344492 - EntityManager.createNamedQuery().getParameters() throws NullPointerException

Update to EJBQueryImpl getInternalParameters()

- Move instantiation of 'parameters' HashMap to initial statement in lazy initialization control structure to prevent a NullPointerException occurring in the situation where a query has zero parameters.

- Test emptyParametersForNonParameterizedNamedQueryTest added to JUnitJPQLParameterTestSuite

Reviewed: Andrei Ilitchev

Testing: Core LRG  JPA LRG

Checked into trunk (2.3) at r9377

David Minsky | Senior Member of Technical Staff
Phone: +1 613 2884605
Oracle Oracle Server Technologies Sustaining Engineering
ORACLE Canada | 45 O'Connor Street, Ottawa, Ontario | K1P 1A4

          Oracle Oracle is committed to developing practices and products that help protect the environment

Back to the top