diff --git a/pathplannerlib/src/main/java/com/pathplanner/lib/commands/PathPlannerAuto.java b/pathplannerlib/src/main/java/com/pathplanner/lib/commands/PathPlannerAuto.java index 928d3421..505427d3 100644 --- a/pathplannerlib/src/main/java/com/pathplanner/lib/commands/PathPlannerAuto.java +++ b/pathplannerlib/src/main/java/com/pathplanner/lib/commands/PathPlannerAuto.java @@ -57,13 +57,14 @@ public PathPlannerAuto(String autoName) { initFromJson(json); } catch (FileNotFoundException e) { DriverStation.reportError(e.getMessage(), e.getStackTrace()); + autoCommand = Commands.none(); } catch (IOException e) { DriverStation.reportError( "Failed to read file required by auto: " + autoName, e.getStackTrace()); + autoCommand = Commands.none(); } catch (ParseException e) { DriverStation.reportError( "Failed to parse JSON in file required by auto: " + autoName, e.getStackTrace()); - } finally { autoCommand = Commands.none(); }