Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 373087 - NavigationQuery fails when navigating via a null Object
Summary: NavigationQuery fails when navigating via a null Object
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Gregoire Dupe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 08:41 EST by Olivier Remaud CLA
Modified: 2020-05-01 11:26 EDT (History)
2 users (show)

See Also:
gdupe: juno+


Attachments
Suggested implementation (patch) (2.91 KB, patch)
2012-03-02 09:02 EST, Olivier Remaud CLA
gdupe: iplog+
gdupe: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Remaud CLA 2012-03-02 08:41:47 EST
Actually, the NavigationQuery evaluation raise an Exception when an intermediate object in a navigation path is null.
This behavior may not be appropriate in all cases and should be configurable.
Comment 1 Olivier Remaud CLA 2012-03-02 09:02:04 EST
Created attachment 211959 [details]
Suggested implementation (patch)

(a) I, Olivier Remaud, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.
(d) This contribution contains no Cryptography features.
Comment 2 Gregoire Dupe CLA 2012-03-05 08:13:29 EST
Comment on attachment 211959 [details]
Suggested implementation (patch)

This patch is smaller than 250 lines (10 lines).

I've committed this patch.

Committed revision 1726.
Comment 3 Gregoire Dupe CLA 2012-03-13 12:59:42 EDT
This bug can be marked as fixed.
Comment 4 Olivier Remaud CLA 2012-04-26 09:14:39 EDT
Works fine.