ERROR 1 Unhandled exception: java.lang.NullPointerException frc.robot.commands.Move.(Move.java:26)
ERROR 1 The startCompetition() method (or methods called by it) should have handled the exception above. edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:276)
Warning at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:274): Robots should not quit, but yours did!
So your robot code was actually able to be deployed to the robot, however it crashed while running on the robot.
That exception actually tells you exactly what’s going wrong with your code. NullPointerExceptions are usually the easier things to fix: https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it
The stacktrace says that the NPE is happening on line 26 of Move.java. If you still need more help, you can post some of the related code to that and we may be able to help.
1 Like
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.