View Single Post
  #1   Spotlight this post!  
Unread 07-01-2013, 01:07
IBeMad IBeMad is offline
Registered User
FRC #3968
 
Join Date: Jan 2013
Location: Washington
Posts: 4
IBeMad is an unknown quantity at this point
NetworkTable crash in unmodified SimpleRobot template

I'm getting a null pointer exeption in
Code:
NetworkTable::Initialize()
on the following line:

Code:
staticProvider = new NetworkTableProvider(*(mode->CreateNode(ipAddress.c_str(), port, threadManager)));
This crash occurs in unmodified SimpleRobotTemplate code. How does something like this even get through QA, or is there even any QA to begin with? Sure seems like there isn't any...

Earlier on in the call stack, the crash stems from
Code:
SimpleRobot::StartCompetition()
when it calls

Code:
LiveWindow *lw = LiveWindow::GetInstance();
which creates a new instance of LiveWindow since it's the first time GetInstance() is called, which results in it calling
Code:
NetworkTable::GetTable("LiveWindow")
.

When will this be fixed in WPILib, and how can I work around it in the meantime?

Last edited by IBeMad : 07-01-2013 at 01:12.
Reply With Quote