View Single Post
  #8   Spotlight this post!  
Unread 08-01-2013, 09:30
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: NetworkTable crash in unmodified SimpleRobot template

Quote:
Originally Posted by Fifthparallel View Post
Code:
staticProvider = new NetworkTableProvider(*(mode->CreateNode(ipAddress.c_str(), port, threadManager)));
Out of curiosity, why is there an asterisk in the argument for NetworkTableProvider? (I always get hazy around dereference operators)

Anyway, a null pointer exception would seem to indicate that something on that line is an uninitialized pointer. How/where did you declare staticProvider?
Well, not looking at the lib or anything, but it seems pretty clear that CreateNode returns a pointer, but the NetworkTableProvider constructor expects a value.
__________________
Proud alum of CORE 2062.
www.core2062.com

Last edited by nightpool : 08-01-2013 at 09:37.
Reply With Quote