View Single Post
  #4   Spotlight this post!  
Unread 24-01-2016, 16:01
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: Robot preferences help

in addition to declaring

Code:
Preferences prefs;
are you initializing the 'prefs' variable before using it?

Code:
prefs = Preferences.getInstance();
Usually a NPE (NullPointerException) is caused by using a variable before initializing it.
Reply With Quote