Skip to content

Commit

Permalink
Fix rare tiny bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew121410 committed Sep 10, 2024
1 parent aae05c9 commit ca955e8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ public void stop() {
this.isRunning = false;
}

public FloorQueueObject getNextFloor(int floorNumber) {
public FloorQueueObject getNextFloor(Integer floorNumber) {
if (floorNumber == null) return null;

ElevatorFloor elevatorFloor = null;
ElevatorStatus elevatorStatus = null;
if (floorNumber == 1) {
Expand Down

0 comments on commit ca955e8

Please sign in to comment.