Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366021 - NPE in ModelAssembler.processModel(ModelAssembler.java:118) when starting
Summary: NPE in ModelAssembler.processModel(ModelAssembler.java:118) when starting
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 07:53 EST by Matthias Steigenberger CLA
Modified: 2018-11-22 03:40 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Steigenberger CLA 2011-12-08 07:53:49 EST
Build Identifier: 4.2.0.I20111028-100

Following NPE always occurs if the option -deltaRestore is set to false (Model will be saved) and the application model was not been saved before when starting my e4 application. I have a second xmi which i have referenced in my plugin.xml. Model objects from that xmi don't work until i restart the application.

java.lang.NullPointerException
	at org.eclipse.e4.ui.internal.workbench.ModelAssembler.processModel(ModelAssembler.java:118)
	at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:292)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:353)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:217)
	at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:534)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:520)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at com.in2soft.eDive.rcp.EDiveApplication.start(EDiveApplication.java:55)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

Reproducible: Always

Steps to Reproduce:
1. Set deltaRestore to false
2. Add fragment.xmi to plugin.xml
3. Start e4 application the first time (means with no previous saved model)
Comment 1 Matthias Steigenberger CLA 2012-02-29 05:30:56 EST
Hi,
any ongoing progress on that issue?
Isn't it a common usecase to extract some model code in different .xmi files?

Regards,
Matthias
Comment 2 Thomas Schindl CLA 2012-03-01 15:58:31 EST
The uncommon thing is that you are not using delta-restore. Is there are reason for that?
Comment 3 Matthias Steigenberger CLA 2012-03-02 04:51:46 EST
If I set delta-restore the model doesn't get persistet. E.g. The layout gets resettet.
Is there an other way to achieve that?
Comment 4 Thomas Schindl CLA 2012-03-02 04:58:12 EST
Are you running with -clean? You should not need to pass any special flag in e4 to get old state restored.
Comment 5 Matthias Steigenberger CLA 2012-03-07 10:34:03 EST
No, I'm just running with "-deltaRestore false -persistState true".
Otherwise the perspective is set to default after restarting.
Any hints?
Comment 6 Eclipse Genie CLA 2018-11-22 03:35:06 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.