Slick Forums

Null pointer exception when getting manager
Page 1 of 1

Author:  bagpipes100 [ Thu Mar 13, 2014 4:42 pm ]
Post subject:  Null pointer exception when getting manager

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?

Author:  junkdog [ Wed Mar 19, 2014 2:32 pm ]
Post subject:  Re: Null pointer exception when getting manager

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group