NPE in SetupStack.StackConfigurer.actionPerformed()

I was trying to fix Bug #2044393 just now:

Here’s the bug:

sourceforge.net/tracker/index.p … tid=594231

The immediate problem is that locationConfig is null in line 639 of SetupStack,
but I don’t understand what any of this does, so I’m having a hard time fixing
it.

I can’t seem to reproduce this; that seems to work fine for me. I looked at the code, and I don’t see how locationConfig could be null; It’s set in getConfigurer().

Can you reproduce this?

  • M.

2008/9/30 uckelman <messages@forums.vassalengine.org (messages@forums.vassalengine.org)>

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

Then it follows that getConfigurer() was not called in the code path which
led to this stack trace.

No, becuase I don’t know where to find the Arhkam Horror module.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

That can’t be the case. If getConfigurer() wasn’t called then xConfig and yConfig would be null too.

Interesting. Now I really don’t see why it would happen for only one module.

You can contact the poster of the bug and ask him where to find it.

  • M.

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

Possibly xConfig and yConfig are null also. The line numbers in the stack
trace don’t match exactly what I see in the source, so it might be that
the NPE is happening when xConfig.setValue() is called.

We had this same stack trace from another module, but I can’t find it
now, since SF give us no easy way of finding duplicates.

Already have. Waiting for a reply.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

How did you know it was Arkham Horror?

  • M.

2008/10/1 Joel Uckelman <uckelman@nomic.net (uckelman@nomic.net)>

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Wow. I never noticed that before.

Good thing I didn’t propose it as a feature.

  • M.

2008/10/1 Joel Uckelman <uckelman@nomic.net (uckelman@nomic.net)>

Post generated using Mail2Forum (mail2forum.com)