|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
|||
|
|||
|
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*");
Katie FTC 3595 Schrödinger's Hat |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|