Still an issue as of 5.0.2; however the exception is at a different line:
java.lang.NullPointerException
at org.hibernate.jpa.criteria.path.AbstractPathImpl.get(AbstractPathImpl.java:123)
at com.setech.test.TestRepositoryImpl.testMyEntity(TestRepositoryImpl.java:85)