diff options
| author | Laurent Redor | 2016-05-09 15:09:51 +0000 |
|---|---|---|
| committer | Laurent Redor | 2016-05-09 15:10:39 +0000 |
| commit | d494dc61d1d03162e664362e19fc9c7351f0bbe9 (patch) | |
| tree | a039fd43b8707b55605abd81859cf670b7aeb597 | |
| parent | 97bb7b9a1ec59d7a067a0a7e2b94a78bd455c1a1 (diff) | |
| download | org.eclipse.sirius-d494dc61d1d03162e664362e19fc9c7351f0bbe9.tar.gz org.eclipse.sirius-d494dc61d1d03162e664362e19fc9c7351f0bbe9.tar.xz org.eclipse.sirius-d494dc61d1d03162e664362e19fc9c7351f0bbe9.zip | |
[485554] Add test to reveal the NPE
The NPE appears when there is a precondition in a CreateLine tool. This
commit only adds a precondition on one CreateLine tool to avoid
regression. For example, without the fix [1], the test
ExploitArrays_SimpleTest fails with NPE.
[1]
http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=ceae267a9fc56c3b80212f2b04bc411710c93b35
Bug: 485554
Change-Id: I625deb5c70e8ff97c7cd5231f82e9c86b7b0897a
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
| -rw-r--r-- | plugins/org.eclipse.sirius.tests.junit/data/table/unit/refresh/tables.odesign | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.sirius.tests.junit/data/table/unit/refresh/tables.odesign b/plugins/org.eclipse.sirius.tests.junit/data/table/unit/refresh/tables.odesign index b81b293249..0afeed0237 100644 --- a/plugins/org.eclipse.sirius.tests.junit/data/table/unit/refresh/tables.odesign +++ b/plugins/org.eclipse.sirius.tests.junit/data/table/unit/refresh/tables.odesign @@ -243,7 +243,7 @@ </firstModelOperation> </delete> </ownedLineMappings> - <ownedCreateLine name="New Line" elementsToSelect="service:stdEmptyCollection"> + <ownedCreateLine name="New Line" precondition="aql:true" elementsToSelect="service:stdEmptyCollection"> <variables name="root" documentation="The semantic element of the table."/> <variables name="element" documentation="The semantic currently edited element."/> <variables name="container" documentation="The semantic element corresponding to the view container."/> |
