The-Charge / SulfuricAcid2021

Repository for the 2021 FRC At Home Challenges using last year's Sulfuric Acid robot.
Other
2 stars 0 forks source link

Error in AutonomousCorner.java #16

Closed drakeot closed 3 years ago

drakeot commented 3 years ago

The error allows the code to build, but exits the simulation with "Robots should not quit, but yours did!" The stack trace is below:

Inside Catch
Error at java.base/java.util.Objects.requireNonNull(Objects.java:221): Unhandled exception: java.lang.NullPointerException
        at java.base/java.util.Objects.requireNonNull(Objects.java:221)
        at java.base/java.util.ImmutableCollections$Set12.<init>(ImmutableCollections.java:504)
        at java.base/java.util.Set.of(Set.java:697)
        at edu.wpi.first.wpilibj2.command.CommandGroupBase.requireUngrouped(CommandGroupBase.java:55)
        at edu.wpi.first.wpilibj2.command.SequentialCommandGroup.addCommands(SequentialCommandGroup.java:32)
        at frc.robot.commands.AutonomousCorner.<init>(AutonomousCorner.java:51)
        at frc.robot.RobotContainer.configureButtonBindings(RobotContainer.java:269)
        at frc.robot.RobotContainer.<init>(RobotContainer.java:114)
        at frc.robot.RobotContainer.<clinit>(RobotContainer.java:57)
        at frc.robot.Robot.robotInit(Robot.java:42)
        at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:94)
        at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:335)
        at edu.wpi.first.wpilibj.RobotBase.lambda$startRobot$0(RobotBase.java:387)
        at java.base/java.lang.Thread.run(Thread.java:834)
neuenfeldttj commented 3 years ago

If you check out the AutonTesting branch, it has been fixed.