if (log.isDebugEnabled()) should be
if (log.isDebugEnabled() && !query.getHints.isEmpty())
There is no logical relationship between being in debug mode and having queryhints, at least I don't know. If we leave the code like this, it throws NPE in debug mode. I solved the problem by going out of debug mode.
Hi,
first thanks for this nice implementation. I faced an issue and wanted to inform you about that.
In JpaSpecificationExecutorWithProjectionImpl:
if (log.isDebugEnabled()) should be
if (log.isDebugEnabled() && !query.getHints.isEmpty())
There is no logical relationship between being in debug mode and having queryhints, at least I don't know. If we leave the code like this, it throws NPE in debug mode. I solved the problem by going out of debug mode.
Regards, Deniz