View Single Post
  #1   Spotlight this post!  
Unread 28-01-2017, 23:41
phurley67 phurley67 is offline
Programming Mentor
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Michigan
Posts: 73
phurley67 is an unknown quantity at this point
CAN Talon / Test Mode Crash

Using robot builder, and the latest software from CTRE. If I create a project with a single subsystem, and in that subsystem a single CAN Talon. When the code is deployed, and the robot enabled in test mode we get the following error.

Any ideas on how to resolve this? We do not use test mode a lot, but it does come in very handy when, well testing robots...

Thanks :-)

Code:
<TagVersion>1 <time> 06.899 <count> 1 <flags> 1 <Code> 1 <details> ERROR Unhandled exception: java.lang.NullPointerException: value cannot be null at [edu.wpi.first.wpilibj.networktables.NetworkTablesJNI.putString(Native Method), edu.wpi.first.wpilibj.networktables.NetworkTable.putString(NetworkTable.java:588), edu.wpi.first.wpilibj.livewindow.LiveWindow.initializeLiveWindowComponents(LiveWindow.java:51), edu.wpi.first.wpilibj.livewindow.LiveWindow.setEnabled(LiveWindow.java:74), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:93), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:247)] <location> edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:249) <stack> 
<TagVersion>1 <time> 06.900 <message> Starting live window mode. 
<TagVersion>1 <time> 06.901 <message> Initializing the components first time 
<TagVersion>1 <time> 06.901 <message> Initializing table for 'Subsystem 1' 'CAN Talon 1' 
<TagVersion>1 <time> 06.902 <message> Error at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:249): ERROR Unhandled exception: java.lang.NullPointerException: value cannot be null at [edu.wpi.first.wpilibj.networktables.NetworkTablesJNI.putString(Native Method), edu.wpi.first.wpilibj.networktables.NetworkTable.putString(NetworkTable.java:588), edu.wpi.first.wpilibj.livewindow.LiveWindow.initializeLiveWindowComponents(LiveWindow.java:51), edu.wpi.first.wpilibj.livewindow.LiveWindow.setEnabled(LiveWindow.java:74), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:93), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:247)] 
<TagVersion>1 <time> 06.904 <message> WARNING: Robots don't quit! 
<TagVersion>1 <time> 06.905 <message> ---> The startCompetition() method (or methods called by it) should have handled the exception above.
Reply With Quote