Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » NPE on a JPQL query with NULL arg: bug?
NPE on a JPQL query with NULL arg: bug? [message #1819451] Wed, 15 January 2020 15:37
Karsten Wutzke is currently offline Karsten WutzkeFriend
Messages: 121
Registered: July 2009
Senior Member
I get an NPE on a JPQL query like:

            SELECT NEW net.bbstats.dto.TestDto(
              NULL
            )
            FROM Group gr


Full posting is on SO here:

https://stackoverflow.com/questions/59753559/nullpointerexception-when-using-null-in-a-constructor-expression-using-eclipseli

I tried EclipseLink 2.7.5 and 2.5.2. Both have the same problem.

It makes debugging complex query really a pain when you want to set certain parameters to NULL.

Is this a bug?

Karsten

[Updated on: Wed, 15 January 2020 16:06]

Report message to a moderator

Previous Topic:Multitenant per table and native query
Next Topic:LocalDateTime is not mapped correctly
Goto Forum:
  


Current Time: Sat Feb 22 16:18:34 GMT 2020

Powered by FUDForum. Page generated in 0.01814 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top