MASON-INTEREST-L Archives

January 2013

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show HTML Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Subject:
From:
Date:
Wed, 2 Jan 2013 21:18:01 +0100
Content-Type:
multipart/alternative; boundary=20cf30334961d2576404d253f3e2
MIME-Version:
1.0
Reply-To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (631 bytes) , text/html (990 bytes)
Hello,

This is my first mail in this mail-list so I'm sorry if I'm making it wrong.

Focusing in the possible bug, in the SparseGrid2D class, in the function
reduceObjectsAtLocations() (line 620), there is a call to the method
getObjectsAtLocation() in the line 636, which may return a null value, the
code is:

Bag temp = getObjectsAtLocation(xs[i],ys[i]);      //line 636 this can
return 'null'
int size = temp.numObjs;                                     //line 637


And as you can see, if the value of "temp" is null, the line 637 will throw
a null pointer exception as it's happening to me.

I hope this report can be useful ;-)

Regards,
Javier


ATOM RSS1 RSS2