Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProductionPanel#initRules:124 - java.lang.NullPointerException #12140

Closed
tripleabuilderbot opened this issue Nov 28, 2023 · 6 comments
Closed
Assignees
Labels
2.6 Error Report Issue reported via the in-game error reporter Pre-Release Problem Regression A problem introduced in pre-release and not present in latest release

Comments

@tripleabuilderbot
Copy link
Contributor

tripleabuilderbot commented Nov 28, 2023

User Description

on unix prerelease 14579

Aftr the initial Game Notifications run the "NullPointerException" error shows up.

The map is https://github.com/beelee1/global_40_expansion_uhd_boxes

It must be downloaded directly from the repo. The error does not occur when I start the Tutorial.

Map

global_40_expansion_uhd_boxes

TripleA Version

2.6.14579

Java Version

11.0.20.1

Edit

I tried it on "Charles De Gaulle 1939" and "World War II Global 1940 2nd Edition" and got the same behavior. You can't click "OK" and play through it. The error will continue to pop up.

Operating System

Linux

Stack Trace

Exception: java.lang.NullPointerException 
java.lang.Exception
	at games.strategy.triplea.ui.ProductionPanel.initRules(ProductionPanel.java:124)
	at games.strategy.triplea.ui.ProductionPanel.show(ProductionPanel.java:102)
	at games.strategy.triplea.ui.TabbedProductionPanel.getProduction(TabbedProductionPanel.java:51)
	at games.strategy.triplea.ui.PurchasePanel$1.actionPerformed(PurchasePanel.java:62)
	at games.strategy.triplea.ui.PurchasePanel.lambda$waitForPurchase$2(PurchasePanel.java:217)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)


@tripleabuilderbot tripleabuilderbot added 2.6 Error Report Issue reported via the in-game error reporter labels Nov 28, 2023
@asvitkine
Copy link
Contributor

@zemjak I think this is caused by your change #12084.

Looks like contrary to our discussion, a null check was needed.
It seems purchase gets set to new IntegerMap<>(); before that code runs, so assigning null to it isn't correct.

Can you take a look?

@asvitkine asvitkine added Regression A problem introduced in pre-release and not present in latest release Pre-Release Problem labels Nov 28, 2023
@zemjak
Copy link
Contributor

zemjak commented Nov 28, 2023

yeah, could u assign me?

@Cernelius

This comment was marked as off-topic.

@Cernelius

This comment was marked as off-topic.

@DanVanAtta

This comment was marked as off-topic.

@beelee1
Copy link
Contributor

beelee1 commented Nov 29, 2023

#12141 fixes this. Pre 14586 works correctly

@beelee1 beelee1 closed this as completed Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.6 Error Report Issue reported via the in-game error reporter Pre-Release Problem Regression A problem introduced in pre-release and not present in latest release
Projects
None yet
Development

No branches or pull requests

6 participants