Go to Post It's only messy if you allow it to be. - Jay H 237 [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 24-01-2014, 19:52
ianlo ianlo is offline
Ian Lo
FRC #0610
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Toronto
Posts: 1
ianlo is an unknown quantity at this point
Re: CANNOT DEPLOY CODE

Hi LFRobotics,
The key here is the java.lang.NullPointerException that the program prints out in your new code. What the NullPointerException means is that you're using a variable that hasn't been initialized yet or if you're trying to get something that doesn't exist. In this case, a button seems to be the issue. Looking back through the stack trace of the error, it seems to occur at edu.wpi.first.LFRobot2014.OI.<init>(OI.java:64). I would look through your OI file and check line 64. That is the line where it runs into an error. You'll notice that the NullPointerException segment of the output doesn't occur in your "Old code" as well so something that was changed on that line isn't quite working properly.

I can't speak directly to what the issue is since I've only used Joystick.getRawButton() rather than Button.whenPressed(), but I think it's likely that your Button hasn't been initialized properly.

Ian
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi