View Single Post
  #5   Spotlight this post!  
Unread 16-01-2015, 09:53
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: Unhandled exception instantiating robot

Quote:
Originally Posted by dash121 View Post
I am having the same problem. The specific error that is given "ERROR Unhandled exception: java.lang.NullPointerException at [edu.wpi.first.wpilibj.PWM.startLiveWindowMode(PWM. java:484), org.usfirst.frc.team4085.robot.Robot.teleopPeriodi c(Robot.java:117), edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:150), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:234)]"

Can you help me?

Code:
                Window.setEnabled(isEnabled());
        	Left.startLiveWindowMode();
        	Right.startLiveWindowMode();
        	Accel.startLiveWindowMode();
        	PDP.startLiveWindowMode();
This is not how you put objects to the LiveWindow. See the examples on using LiveWindow here: http://wpilib.screenstepslive.com/s/...ode-livewindow.
Reply With Quote