Choreo Setup - Null Pointer Exception

Hello, we are having trouble with implementing Choreo pathing. We just started looking into Choreo and we are having problems with implementing it to our code. Our problem lies in the accessor method (Choreo.getTrajectory(“fileName”)).

All other parts of the code are working as intended, but running our Choreo autonomous spits out a null exception for the accessor.

Here is what we have for our autonomous:

Thank you!

choreo assumes you have your project set up similar to wpilib. Since this repo is not set up as a normal wpilib project choreo will not find the trajectory, unless this is just a snippet of your code in which case it would be helpful to post the whole thing.

1 Like

We’ve updated our repository. Let me know if you need anything else.

im seeing two deploy folders nested in each other, which i dont think choreo will read from properly which could be your issue.

1 Like

You should have a build.gradle file in the root of your project. What happened to that file?