|
Re: NetworkTables Null Pointer Exception
There's a second overloaded getNumber() method that takes two parameters, the name and a default value. If it can't find the named value, then the default value is supplied instead of the error being thrown. Take a look at this example:
http://wpilib.screenstepslive.com/s/...client-pc-side
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
|