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

Bug 462235

Summary: PropertySourceAdapterFactory is not null aware
Product: [Tools] GEF Reporter: Reguel Wermelinger <reguel.wermelinger>
Component: GEF-Legacy GEF (MVC)Assignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 3.9.100   
Target Milestone: 4.0.0 / 3.11.0 (Neon) M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
NPE patch nyssen: iplog+

Description Reguel Wermelinger CLA 2015-03-16 09:49:12 EDT
Created attachment 251588 [details]
NPE patch

The org.eclipse.gef.internal.PropertySourceAdapterFactory.getAdapter(Object, Class) does not respect, that by Javadoc the AbstractEditParty.getModel() could return null. Therefore it could fail with an NPE.
Comment 1 Alexander Nyßen CLA 2015-07-28 14:12:56 EDT
Thanks for having pointed that out. Could you please confirm that your contribution complies with the Certificate of Origin (http://www.eclipse.org/legal/CoO.php)?
Comment 2 Alexander Nyßen CLA 2015-09-18 02:10:52 EDT
If you don't confirm CoO compliance, I will not be able to consume your patch.
Comment 3 Reguel Wermelinger CLA 2015-09-21 05:43:02 EDT
Yes the contribution complies with the Certificate of origin. 
But I don't know where I have to sign it...
Comment 4 Alexander Nyßen CLA 2015-09-21 07:00:10 EDT
(In reply to Reguel Wermelinger from comment #3)
> Yes the contribution complies with the Certificate of origin. 
> But I don't know where I have to sign it...

You can't sign it. But each contribution that is not provided via Gerrit (which we not yet offer) has to contain a respective compliant-statement. As such, the above statement is all I need.
Comment 5 Alexander Nyßen CLA 2015-09-21 07:08:11 EDT
I applied you patch and pushed the changes to origin/master. Resolving as fixed in 3.11.0 M2.