[SOLVED]Weird stupid error...

Discussion in 'Plugin Help/Development/Requests' started by Datdenkikniet, Dec 20, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Datdenkikniet

    So, I've got this error, and this code is what's causing it. The line throwing the error is line 6 in the code hastebin.
    The weird thing about this error is that using
    Code:java
    1. System.out.println(stringslist.get(1));

    does work, but the code mentioned above does.
    (and yes, the string used is split into 6 parts, I'm entirely certain about it (arraylistsize is 6))
    I'm desperate, please help me plugin-development-gurus
     
  2. Offline

    Assist

    @Datdenkikniet
    Debugging is the way to go. Print out the string, print out the size of the list etc.
     
    Datdenkikniet likes this.
  3. Offline

    Funergy

    Datdenkikniet likes this.
  4. Offline

    Datdenkikniet

    I did, and when doing it, it worked just fine :/

    hihihi, I know what an ArrayIndexOutOfBounsException is, but its just that I don't get why this is occuring. If make a debug message printing that exact String in the list, it works just fine. (and thanks for pointing me to the fact that I shouldn't be here, I'll ask if the thread is moved)
     
  5. Offline

    teej107

    Line 112 is where it is happening. Are you sure your string is in the correct format?
     
    Datdenkikniet likes this.
  6. Offline

    Datdenkikniet

    @teej107 yes (format is world,242.4541925959437,70.0,235.3319632398985,0.0,0.15 so it should be split correctely)(line 112 is line 6 in the code hastebin)
     
    Last edited: Dec 20, 2014
  7. Offline

    bwfcwalshy Retired Staff

    Moved to Bukkit Alternates.
     
    Datdenkikniet likes this.
Thread Status:
Not open for further replies.

Share This Page