Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 478399 - NPE when fragment without parent ID is merged
Summary: NPE when fragment without parent ID is merged
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 4.6 M3   Edit
Assignee: Jonas Helming CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 478400
Blocks:
  Show dependency tree
 
Reported: 2015-09-25 06:50 EDT by Jonas Helming CLA
Modified: 2015-10-26 05:17 EDT (History)
2 users (show)

See Also:


Attachments
bug fixed (4.60 KB, patch)
2015-10-22 10:18 EDT, Ihor Yatsenko CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Helming CLA 2015-09-25 06:50:57 EDT
When a fragment without a prent ID is regeistered, you get a NPW, because there is no check.

java.lang.NullPointerException
	at org.eclipse.e4.ui.model.fragment.impl.StringModelFragmentImpl.merge(StringModelFragmentImpl.java:296)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processFragment(ModelAssembler.java:192)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processFragments(ModelAssembler.java:103)
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processModel(ModelAssembler.java:83)
Comment 1 Lars Vogel CLA 2015-10-15 09:53:24 EDT
Jonas, are you still planning to fix this for M3?
Comment 2 Eclipse Genie CLA 2015-10-16 05:08:48 EDT
New Gerrit change created: https://git.eclipse.org/r/58303
Comment 3 Ihor Yatsenko CLA 2015-10-22 10:18:13 EDT
Created attachment 257443 [details]
bug fixed
Comment 4 Jonas Helming CLA 2015-10-22 11:34:27 EDT
There is already a fix in Gerrit ready for review...
Comment 6 Jonas Helming CLA 2015-10-26 03:04:46 EDT
Fixed by adding validation
Comment 7 Lars Vogel CLA 2015-10-26 05:17:31 EDT
See also Bug 480610 for planned tests.