View Single Post
  #2   Spotlight this post!  
Unread 23-11-2016, 12:00
Christopher149 Christopher149 is offline
Registered User
FRC #0857 (Superior Roboworks) FTC 10723 (SnowBots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Houghton, MI
Posts: 1,100
Christopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond repute
Re: [FTC]: Android Studio NullPointerException on TeleOp Init

Looking at what you posted, you have big chunk of code between start() and loop() that isn't actually in a function (it should all be in loop()). As such, I am curious how your code is compiling as of now. But if you get it into loop(), it should be mostly fine.

A second, smaller issue, is that you never assign a value to buttonPushDelta, but I think Java defaults it to zero.
__________________
2015-present: FTC 10723 mentor
2012-present: 857 mentor
2008-2011: 857 student

2015: Industrial Design, Excellence in Engineering, District Finalist, Archimedes Division (#6 alliance captain)
2014: Judges Award, District Engineering Inspiration, District Finalist, Galileo Division

Reply With Quote