Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
vadere
vadere
Commits
90aa8e7f
Commit
90aa8e7f
authored
Jun 02, 2020
by
Benedikt Zoennchen
Browse files
quick fix if for migration if main model is null.
parent
4e97e7bb
Pipeline
#265269
failed with stages
in 2 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VadereSimulator/src/org/vadere/simulator/projects/io/JsonConverter.java
View file @
90aa8e7f
...
...
@@ -53,7 +53,8 @@ public class JsonConverter {
AttributesSimulation
attributesSimulation
=
StateJsonConverter
.
deserializeAttributesSimulationFromNode
(
scenarioNode
.
get
(
AttributesSimulation
.
JSON_KEY
));
AttributesPsychology
attributesPsychology
=
StateJsonConverter
.
deserializeAttributesPsychologyFromNode
(
scenarioNode
.
get
(
AttributesPsychology
.
JSON_KEY
));
JsonNode
attributesModelNode
=
scenarioNode
.
get
(
"attributesModel"
);
String
mainModel
=
scenarioNode
.
get
(
StateJsonConverter
.
MAIN_MODEL_KEY
).
isNull
()
?
null
:
scenarioNode
.
get
(
StateJsonConverter
.
MAIN_MODEL_KEY
).
asText
();
String
mainModel
=
(!
scenarioNode
.
has
(
StateJsonConverter
.
MAIN_MODEL_KEY
)
||
scenarioNode
.
get
(
StateJsonConverter
.
MAIN_MODEL_KEY
).
isNull
())
?
null
:
scenarioNode
.
get
(
StateJsonConverter
.
MAIN_MODEL_KEY
).
asText
();
List
<
Attributes
>
attributesModel
=
StateJsonConverter
.
deserializeAttributesListFromNode
(
attributesModelNode
);
Topography
topography
=
StateJsonConverter
.
deserializeTopographyFromNode
(
scenarioNode
.
get
(
"topography"
));
StimulusInfoStore
stimulusInfoStore
=
StateJsonConverter
.
deserializeStimuliFromArrayNode
(
scenarioNode
.
get
(
"stimulusInfos"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment