Bug 346562 - NPE in CriteriaBuilderImpl.or
Summary: NPE in CriteriaBuilderImpl.or
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 19:34 EDT by Mitesh Meswani CLA
Modified: 2022-06-09 10:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mitesh Meswani CLA 2011-05-19 19:34:24 EDT
Following reproduces the issue



            CriteriaBuilder cb = em.getCriteriaBuilder();
            CriteriaQuery<Employee> cq = cb.createQuery(Employee.class);
            Root<Employee> root = cq.from(Employee.class);
            Predicate disjunction = cb.disjunction();
            disjunction = cb.or(disjunction, root.<Date>get("hireDate").isNull(), cb.lessThan(root.<Date>get("hireDate"), cb.currentDate()));
Comment 1 Mitesh Meswani CLA 2011-05-19 19:35:15 EDT
See http://java.net/jira/browse/GLASSFISH-16591
Comment 2 Tom Ware CLA 2011-05-31 09:43:11 EDT
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:28:07 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink