CommonWealthRobotics / BowlerStudio

A Full-Stack Robotics Development Environment
GNU Lesser General Public License v3.0
129 stars 29 forks source link

Build 2.11.1 com.neuronrobotics.bowlerstudio.vitamins.Vitamins at line 183 #392

Open mcondron opened 4 months ago

mcondron commented 4 months ago

Auto Reported Issue BowlerStudio Build 2.11.1 BowlerKernel 1.59.0 JavaCad Version: 0.30.1 Java-Bowler Version: 3.34.0 Java Version: 1.8.0_242 JavaFX Version: 8.0.242

OS = Linux amd64 x64

java.lang.NullPointerException
    at com.neuronrobotics.bowlerstudio.vitamins.Vitamins.getScriptFile(Vitamins.java:183)
    at com.neuronrobotics.bowlerstudio.BowlerStudioMenu.lambda$null$33(BowlerStudioMenu.java:1281)
    at java.lang.Thread.run(Thread.java:748)

Caught and reported at:

java.lang.Exception
    at com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler.except(IssueReportingExceptionHandler.java:234)
    at com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler.uncaughtException(IssueReportingExceptionHandler.java:51)
    at com.neuronrobotics.bowlerstudio.tabs.LocalFileScriptTab$1.uncaughtException(LocalFileScriptTab.java:62)
    at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
    at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
    at java.lang.Thread.dispatchUncaughtException(Thread.java:1959)

IssueReportingExceptionHandler Created at:

java.lang.Exception
    at com.neuronrobotics.bowlerstudio.IssueReportingExceptionHandler.<init>(IssueReportingExceptionHandler.java:41)
    at com.neuronrobotics.bowlerstudio.tabs.LocalFileScriptTab$1.<init>(LocalFileScriptTab.java:53)
    at com.neuronrobotics.bowlerstudio.tabs.LocalFileScriptTab.<clinit>(LocalFileScriptTab.java:52)
    at com.neuronrobotics.bowlerstudio.BowlerStudioController.createFileTab(BowlerStudioController.java:142)
    at com.neuronrobotics.bowlerstudio.BowlerStudioModularFrame.createFileTab(BowlerStudioModularFrame.java:352)
    at com.neuronrobotics.bowlerstudio.BowlerStudio.createFileTab(BowlerStudio.java:587)
    at com.neuronrobotics.bowlerstudio.BowlerStudioMenu.openFilesInUI(BowlerStudioMenu.java:284)
    at com.neuronrobotics.bowlerstudio.BowlerStudioMenu.access$1400(BowlerStudioMenu.java:71)
    at com.neuronrobotics.bowlerstudio.BowlerStudioMenu$2.lambda$run$0(BowlerStudioMenu.java:252)
    at java.lang.Thread.run(Thread.java:748)
madhephaestus commented 4 months ago

AH this was the cause of the servo not loading and returning null error in class. I will add some code to prevent this error from blowing up like it did...