Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 463316

Summary: NPE for IGraphNodeContentProvider#getConnectedTo returning null
Product: [Tools] GEF Reporter: Frank Benoit <frank.rene.benoit>
Component: GEF ZestAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.wienand
Version: unspecified   
Target Milestone: 3.10.0 (Mars) M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Frank Benoit CLA 2015-03-27 13:45:59 EDT
JavaDoc defines null as a valid return value. But this generates a NPE here:

org.eclipse.gef4.zest.fx.ui.jface.ZestContentViewer.createNodesAndEdges(ZestContentViewer.java:365)

Reproduce: Modify JFaceSimpleExample
Comment 1 Matthias Wienand CLA 2015-04-02 06:37:29 EDT
I added null checks for the values returned from a provider where they were previously missing and implemented corresponding tests. The code is published on the master branch, therefore I resolve this ticket as fixed for 3.10.0M7.