Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.07 seconds.

  1. Re: Null Pointer Exception :: Switch statement not working.

    You can improve the look of that if statement with a helper method.
    Something like this:

    for(int objectcount = 0; objectcount < fileinfo.length(); objectcount++){
    ...
  2. Re: Null Pointer Exception :: Switch statement not working.

    Ok, well either objects is null, or objects[loopcontrol] is null (I would guess the latter). Check to make sure you are adding objects to the array. You must have not filled up the array all the way....
  3. Re: Null Pointer Exception :: Switch statement not working.

    Welcome. When you get an exception thrown, it is helpful to include, as well as what you already did, the full stack trace of the exception, and the specific line of code the exception is occurring...
Results 1 to 3 of 3