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
97c7f970
Commit
97c7f970
authored
Aug 22, 2019
by
Daniel Lehmberg
Browse files
bugfix, nullpointer exception
parent
373740b7
Pipeline
#146879
failed with stages
in 59 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VadereState/src/org/vadere/state/scenario/Pedestrian.java
View file @
97c7f970
...
...
@@ -159,11 +159,13 @@ public class Pedestrian extends Agent {
}
public
void
clearFootSteps
()
{
// Last is always the most recent (made sure in VTrajectory.add)
//
get
Last
()
is always the most recent (made sure in VTrajectory.add)
// This statement is for security and should mostly have no effect (only if someone did not use method
// "addFootStepToTrajectory" to add another foot step to the trajectory)
currentFootStep
=
trajectory
.
getFootSteps
().
getLast
();
trajectory
.
clear
();
if
(!
trajectory
.
isEmpty
()){
currentFootStep
=
trajectory
.
getFootSteps
().
getLast
();
trajectory
.
clear
();
}
}
// Overridden Methods
...
...
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