The Artima Developer Community
Sponsored Link

Java Answers Forum
MooreQuery

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Lene Kjaer

Posts: 2
Nickname: ljkjaer
Registered: Jan, 2010

MooreQuery Posted: Jan 8, 2010 8:45 AM
Reply to this message Reply
Advertisement
Hi,
I am using a MooreQuery to look for neighbors in a grid:

MooreQuery<Object> query = new MooreQuery<Object>(grid, this,(int) (2*myHomeRangeRadius), (int) (2*myHomeRangeRadius));


if(query != null){

for (Object o : query.query()){

.................................................



Even though I have the if (query != null), I still get a nullPointer exception from the query when trying to iterate ,

Can anyone help me.

Thanks,

Lene

Topic: Plz, help me some exercises Previous Topic   Next Topic Topic: Temperature Tracking Program

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use