Bug 534199 - NPE when applying a viewpoint
Summary: NPE when applying a viewpoint
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 5.1.1   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo, triaged
Depends on:
Blocks:
 
Reported: 2018-04-30 04:22 EDT by Frédéric Madiot CLA
Modified: 2018-06-05 05:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Madiot CLA 2018-04-30 04:22:42 EDT
With the current VSM in the workspace, some evaluation errors leads to a situation where the viewpoint is deselected and can't be applied anymore.
Each time I try to apply the viewpoint, there is this exception :

java.lang.NullPointerException
	at org.eclipse.sirius.diagram.business.internal.dialect.DiagramDialectServices.updateRepresentationsExtendedBy(DiagramDialectServices.java:341)
	at org.eclipse.sirius.business.internal.dialect.DialectManagerImpl.updateRepresentationsExtendedBy(DialectManagerImpl.java:388)
	at org.eclipse.sirius.business.api.session.ViewpointSelector.selectViewpoint(ViewpointSelector.java:92)
	at org.eclipse.sirius.ui.business.api.viewpoint.ViewpointSelectionCallback.selectViewpoint(ViewpointSelectionCallback.java:40)
	at org.eclipse.sirius.ui.business.api.viewpoint.ViewpointSelection$Callback.selectViewpoint(ViewpointSelection.java:562)
	at org.eclipse.sirius.ui.business.internal.commands.ChangeViewpointSelectionCommand.doExecute(ChangeViewpointSelectionCommand.java:111)
	at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
	at org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119)
	at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
	at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:488)
	at org.eclipse.emf.workspace.impl.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:208)
	at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165)
	at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
	at org.eclipse.sirius.ui.tools.internal.viewpoint.ViewpointHelper$1.run(ViewpointHelper.java:291)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

java.version=1.8.0_151


In this situation, Eclipse must be restarted.
Comment 1 Pierre Guilet CLA 2018-06-05 05:49:10 EDT
Can you provide a project and step for reproductions?