View Single Post
  #3   Spotlight this post!  
Unread 01-12-2015, 20:09
Fedoros Fedoros is offline
Registered User
FTC #7232
 
Join Date: Nov 2015
Location: Minnesota, United States
Posts: 3
Fedoros is an unknown quantity at this point
Re: [FTC]: (Android Studio) User code threw an uncaught exception: NullPointerExcepti

Quote:
Originally Posted by Saphira View Post
Hello! You have created 6 DcMotor objects in your code. But you're only getting references for 5 of them. If you add a line like the code below, it should fix the error.

Code:
        liftScissor = hardwareMap.dcMotor.get("*what you named the motor in the configuration on the phone*");
Hope this helps!
Katie
FTC 3595
Schrödinger's Hat
Thanks for the help. This fixed the problem and allowed me to move forward.
Reply With Quote