Commit 2e16ff33 authored by Adrien's avatar Adrien Committed by GitHub
Browse files

fix(data wizard): avoid class cast exception when switching data type (#2412)

* The method 'refresh databinding' was called twice when switching to
Java object data type -> the 'handleValueChange' method was called a
second time, and the second time the else block was used -> a Data with
the wrong type was created.

[STUDIO-3609](https://bonitasoft.atlassian.net/browse/STUDIO-3609)
parent e94dcfb7
......@@ -259,7 +259,6 @@ public class DataWizardPage extends WizardPage implements IBonitaVariableContext
javaData.setClassName(List.class.getName());
copyDataFeature(javaData);
data = javaData;
updateDatabinding();
} else if (newType instanceof XMLType && !(data instanceof XMLData)) {
final XMLData xmlData = ProcessFactory.eINSTANCE.createXMLData();
xmlData.setDataType(newType);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment