[Fixed] Error in Purchase Units Phase
-
In the scenario, I am working on, I receive the following error in the production phase for the Germans only, in the scenario AA50-42 BuildCaps. Note that the similar AA50-41 BuildCaps works fine.
Oct 13, 2018 6:31:44 PM games.strategy.engine.framework.GameRunner lambda$start$0
SEVERE: null
java.lang.NullPointerException
at games.strategy.triplea.ui.ProductionPanel.initRules(ProductionPanel.java:118)
at games.strategy.triplea.ui.ProductionPanel.show(ProductionPanel.java:97)
at games.strategy.triplea.ui.TabbedProductionPanel.getProduction(TabbedProductionPanel.java:41)
at games.strategy.triplea.ui.PurchasePanel$1.actionPerformed(PurchasePanel.java:122)
at games.strategy.triplea.ui.PurchasePanel.lambda$waitForPurchase$2(PurchasePanel.java:109)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)You can down the scenario here.
Note that all units have build caps, but that should not present a problem as it works on other scenarios.
-
@rogercooper I believe one reason for the error is due to a missing
playerProductiontag for the German player in WW2v3-1942-BuildCaps.xml.In WW2v3-1941-BuildCaps.xml, you have:
<playerProduction player="Germans" frontier="production_ge"/> <playerProduction player="Russians" frontier="production_ru"/> <playerProduction player="Japanese" frontier="production_ja"/> <playerProduction player="British" frontier="production_br"/> <playerProduction player="Italians" frontier="production_it"/> <playerProduction player="Chinese" frontier="production"/> <playerProduction player="Americans" frontier="production_us"/>While in WW2v3-1942-BuildCaps.xml, you have a duplicate tag for the British player:
<playerProduction player="British" frontier="production_ge"/> <playerProduction player="Russians" frontier="production_ru"/> <playerProduction player="Japanese" frontier="production_ja"/> <playerProduction player="British" frontier="production_br"/> <playerProduction player="Italians" frontier="production_it"/> <playerProduction player="Chinese" frontier="production"/> <playerProduction player="Americans" frontier="production_us"/>There may be other similar issues that contribute to the problem.
-
@ssoloff Thanks for the help
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login