Search:

Type: Posts; User: KAJLogic

Search: Search took 0.13 seconds.

  1. Replies
    21
    Views
    1,833

    Re: Null Pointer (a curious case)

    Yeah at the top of the exception it cites that line then it cites a stream larger than my command prompt buffers capabilities here:


    nO = t.getOptimalNodes(n,utilities.invert(a));
  2. Replies
    21
    Views
    1,833

    Re: Null Pointer (a curious case)

    Aussie using the length variable produces the same error.






    }
  3. Replies
    21
    Views
    1,833

    Re: Null Pointer (a curious case)

    What are you suggesting that the Array class is inaccurate or flawed?
  4. Replies
    21
    Views
    1,833

    Re: Null Pointer (a curious case)

    Yes aussie your right I guess I never really reviewed the array API very much. In any case I appreciate your help. I will delve into this with your suggestions.
  5. Replies
    21
    Views
    1,833

    Re: Null Pointer (a curious case)

    There is a level of incursion, but I believe that as soon as I reassign n it is no longer referencing the argument. Norm, do you mean a local variable that wasn't initialized?
  6. Replies
    21
    Views
    1,833

    Re: Null Pointer (a curious case)

    May I ask first, is there any other way I could get a null pointer there? Or, do you need more of the code to know for sure? In my head I keep getting this nagging urge to just stop myself and...
  7. Replies
    21
    Views
    1,833

    Re: Null Pointer (a curious case)

    What do you mean by explicitly an array?
  8. Replies
    21
    Views
    1,833

    Re: Null Pointer (a curious case)

    It shouldn't be:


    n=utilities.increment(n);
    for(Tile cur:t.nodes){
    if(cur!=null){
    n[Array.getLength(n)-1] = cur;
  9. Replies
    21
    Views
    1,833

    Null Pointer (a curious case)

    I get a null pointer at:


    n[Array.getLength(n)-1] = cur;

    not an arrayIndexOutOfBounds, but a null pointer? I didn't think you get get a null pointer on assignment, because after all aren't...
Results 1 to 9 of 9