Slick Forums

Discuss the Slick 2D Library
It is currently Thu Jan 23, 2020 11:24 am

All times are UTC

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

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?

PostPosted: Wed Mar 19, 2014 2:32 pm 

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.

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 0 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