|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Scheduler.getInstance().run() throws a null pointer
Quote:
Thanks, Brad |
|
#2
|
||||
|
||||
|
Re: Scheduler.getInstance().run() throws a null pointer
We had this issue because we removed the line in RobotTemplate that initialized the example autonomous command, but we did not get rid of the line that started it.
|
|
#3
|
|||
|
|||
|
Re: Scheduler.getInstance().run() throws a null pointer
is there some code in the teleopInit()?
|
|
#4
|
|||
|
|||
|
Re: Scheduler.getInstance().run() throws a null pointer
Hi salandri_s,
Did you wind up fixing this? If so, could you please post your troubleshooting method? Our team (#4774) is having some trouble finding where the null pointer is creeping in as it doesn't appear in our stack trace either. Quote:
Did anybody post any example code to you? If not, I can share our code with you. I'm heading into the workshop in about 7 hours. I will try and strip out everything to see if I can get rid of the exception. If I have no luck, I'll create a Gist and share the link. |
|
#5
|
||||
|
||||
|
Re: Scheduler.getInstance().run() throws a null pointer
Quote:
|
|
#6
|
|||
|
|||
|
Re: Scheduler.getInstance().run() throws a null pointer
We found a bug in the C++ and Java libraries where doing a putData() of the Scheduler instance will cause the program to crash. That has been fixed and will be released later today or tomorrow morning.
So if you have code like this: SmartDashboard.putData(Scheduler.getInstance()) it will be fixed in that update. Sorry about the annoyance. Brad |
|
#7
|
||||
|
||||
|
Re: Scheduler.getInstance().run() throws a null pointer
Quote:
![]() |
|
#8
|
|||
|
|||
|
Re: Scheduler.getInstance().run() throws a null pointer
You can do that,
and the update just got pushed out. Look for it in Netbeans. Brad |
|
#9
|
||||
|
||||
|
Re: Scheduler.getInstance().run() throws a null pointer
How? "Check For Updates" is empty
|
|
#10
|
|||
|
|||
|
Re: Scheduler.getInstance().run() throws a null pointer
Can you confirm that you aren't seeing the update?
Thanks, Brad |
|
#11
|
||||||
|
||||||
|
Re: Scheduler.getInstance().run() throws a null pointer
I see the updated WPILibJ plugins (version 429) when I reload the catalog
Last edited by Joe Ross : 07-02-2013 at 21:09. |
|
#12
|
||||
|
||||
|
Re: Scheduler.getInstance().run() throws a null pointer
are these WPIJavaCV updates or WPILibJ updates? WPIJavaCV never worked for me and theres no WPILibJ updates (all are version 2013.0.417)
|
|
#13
|
|||
|
|||
|
Re: Scheduler.getInstance().run() throws a null pointer
Quote:
http://first.wpi.edu/FRC/java/netbeans/update/Release you'll see the file updates.xml. That is the file that controls the update process and it should be at version 429. The SmartDashboard also updated both in the NetBeans update and in the plugin update. Brad |
|
#14
|
||||
|
||||
|
Re: Scheduler.getInstance().run() throws a null pointer
Quote:
|
|
#15
|
||||||
|
||||||
|
Re: Scheduler.getInstance().run() throws a null pointer
There are instructions here: http://wpilib.screenstepslive.com/s/...elopment-tools
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|