Skip to main content



      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 10:37
Eclipse UserFriend
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 11:06] by Moderator

Previous Topic:Zombie Entities? Constraint violation when modifying removed Entity
Next Topic:LocalDateTime is not mapped correctly
Goto Forum:
  


Current Time: Sat Jul 05 10:31:39 EDT 2025

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

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

Back to the top