Everytime I attempt to run a command based robot code I get this error. It only happens as soon as I add subsystems and is a command based.
ERROR
Unhandled exception instantiating robot
org.usfirst.frc2509.Robot2015d.v3.Robot java.lang.NullPointerException
at [org.usfirst.frc2509.Robot2015d.v3.Robot.<init>(Robot.java:46),
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method),
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62),
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45),
java.lang.reflect.Constructor.newInstance(Constructor.java:408),
java.lang.Class.newInstance(Class.java:433),
edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:204)
If anyone can help me go in the right direction to fix this error that would be great. Here is the link to the code.