Slick Forums

Discuss the Slick 2D Library
It is currently Sun Aug 25, 2019 8:24 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Mar 13, 2014 4:42 pm 
Offline

Joined: Thu Oct 25, 2012 5:29 pm
Posts: 31
I have been getting a null pointer exception (sometimes) while using the following method

world.getManager(GroupManager.class).inInGroup(e, "ships")

It is done in an extension of EntitySystem, so I imagine that e should exist (since world processing should only allow extant entities to be processed. and "ships" is a constant correctly listed.

Any good ideas for how to dig deeper into debugging this?


Top
 Profile  
 
PostPosted: Wed Mar 19, 2014 2:32 pm 
Offline

Joined: Sun Jun 03, 2012 9:21 pm
Posts: 49
What causes the NPE? The entity or the manager?

Which version of artemis are you using? There used to be a problem where entities that were deleted during a processing round would still be processed by later systems. I think it's fixed in most forks, but not in vanilla.

_________________
agrotera: bytecode-weaving antiboilerplate lib for artemis. | artemis-odb: bugfixing and performance optimized fork.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group