Bug 537741 - Potential NPE in DColumnOperations
Summary: Potential NPE in DColumnOperations
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Table (show other bugs)
Version: 6.0.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 6.0.1   Edit
Assignee: Project Inbox CLA
QA Contact: Julien Dupont CLA
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks: 537748 543887
  Show dependency tree
 
Reported: 2018-08-07 03:58 EDT by Pierre Guilet CLA
Modified: 2019-01-28 05:56 EST (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 Pierre Guilet CLA 2018-08-07 03:58:13 EDT
In org.eclipse.sirius.table.business.internal.metamodel.operations.DColumnOperations.fillIndices(LineContainer, Map<DLine, Integer>, int) we do some computing based on the container.

In a context where the DColumnOperations has been detached from its container we will have an NPE.

There should be a null check.
Comment 1 Pierre Guilet CLA 2018-08-07 04:13:07 EDT
Technical issue
Comment 2 Eclipse Genie CLA 2018-08-07 04:19:49 EDT
New Gerrit change created: https://git.eclipse.org/r/127132
Comment 4 Pierre-Charles David CLA 2018-08-27 04:13:28 EDT
Available in Sirius 6.0.1, see https://wiki.eclipse.org/Sirius/6.0.1 for details.