This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed a crash when setting the floor to null (in order to remove it)

  • Loading branch information...
Ryan Zoeller
Ryan Zoeller committed Oct 13, 2013
1 parent cb1a14e commit 8bdc75101f8591b14496dcbd92dd1510caf9f3c9
Showing with 3 additions and 1 deletion.
  1. +3 −1 ScoutingApp/src/main/java/com/kingtec2169/scouting/Counter.java
@@ -52,8 +52,10 @@ private void refresh() {
}

public void setFloor(Integer x) {
// Set the floor
floor = x;
if (count < floor) {
// Check if a floor exists and force our count to be above the floor if one does.
if (floor != null && count < floor) {
count = floor;
}
}

0 comments on commit 8bdc751

Please sign in to comment.