Arinerron / ScratchAPI

A library written in Java for accessing scratch.mit.edu via your Java application...
Other
6 stars 4 forks source link

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 #33

Closed encloinc closed 7 years ago

encloinc commented 7 years ago

I dont know if this is still being worked on or anything but I am getting this error when using the code Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at edu.mit.scratch.Scratch.createSession(Scratch.java:136) at Main.main(Main.java:4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

Arinerron commented 7 years ago

Mind sending a snippet of code causing the issue? (be sure to snip out your username/password)

I haven't really been working on this anymore since I was banned, but I'll see if I can help still.

Arinerron commented 7 years ago

Nevermind, found the bug. Fixed in commit https://github.com/Arinerron/ScratchAPI/commit/f802550c4600358b4cf8059c741d58416c4f694a. If you have any issues, feel free to open another issue or comment on this one.