No Robot Code

Hello CD

We were about to run test on the Ball Elevator but ran into a issue. When Uploading Off-season 2017.java, I clicked the entire folder, run as, java deploy. I am plugged in through Ethernet to either the radio or Roborio. Every time it says build successful. When i go to look on the driver station, it says no robot code. We tried switching Roborios, radios, ethernet cables. I litterally have no idea what to try next. Anyone have any suggestion?

Check the RIOLog for errors. You can access it by clicking the gear in the upper-right hand corner of driver station and clicking “View Console.”

It was giving me this error:

ERROR 1 ERROR Unhandled exception: java.lang.NullPointerException at ca.team3161.Robot.robotInit(Robot.Java:132), edu.wpi…

Any idea what this means?

I would start by looking at your Robot.Java file around line 132.

Could you post your Robot.Java file?

I only thing i changed from last night is that “driverPad” was supposed to “driverpad”. Could this be my error from line 132

Robot.java (10.1 KB)

That definitely could have been the error, since you were trying to reference an object you hadn’t declared.

You also might want to declare operatorpad before robotInit as you did with driverpad.

I haven’t thoroughly looked through everything, and I’m not the best at this, but that’s what i noticed on first glance.

Thank you. Ill try it out!