View Single Post
  #2   Spotlight this post!  
Unread 28-11-2015, 17:01
Saphira Saphira is offline
Registered User
FTC #3595 (Schrödinger's Hat)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2009
Location: Alaska
Posts: 3
Saphira is an unknown quantity at this point
Re: [FTC]: (Android Studio) User code threw an uncaught exception: NullPointerExcepti

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
Reply With Quote