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

InfluenceMapBuilder#lambda$getBattleDetails$3:97 - java.lang.NullPointerException #13031

Open
tripleabuilderbot opened this issue Dec 7, 2024 · 1 comment
Labels
2.7 Error Report Issue reported via the in-game error reporter

Comments

@tripleabuilderbot
Copy link
Contributor

Log Message

Failed to start game

TripleA Version

2.7.14848

Java Version

11.0.19

Operating System

Windows 10

Heap Size

8178M

Stack Trace

Exception: java.lang.NullPointerException 
java.lang.Exception
	at org.triplea.ai.flowfield.influence.InfluenceMapBuilder.lambda$getBattleDetails$3(InfluenceMapBuilder.java:97)
	at org.triplea.ai.flowfield.influence.InfluenceMap.diffuseBattleDetails(InfluenceMap.java:153)
	at org.triplea.ai.flowfield.influence.InfluenceMap.<init>(InfluenceMap.java:45)
	at org.triplea.ai.flowfield.influence.InfluenceMapBuilder.lambda$buildCombatMaps$1(InfluenceMapBuilder.java:66)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at org.triplea.ai.flowfield.influence.InfluenceMapBuilder.buildCombatMaps(InfluenceMapBuilder.java:67)
	at org.triplea.ai.flowfield.influence.InfluenceMapBuilder.buildMaps(InfluenceMapBuilder.java:41)
	at org.triplea.ai.flowfield.FlowFieldAi.lambda$setupDiffusionMaps$2(FlowFieldAi.java:134)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at org.triplea.ai.flowfield.FlowFieldAi.setupDiffusionMaps(FlowFieldAi.java:140)
	at org.triplea.ai.flowfield.FlowFieldAi.initialize(FlowFieldAi.java:38)
	at games.strategy.engine.framework.AbstractGame.setupLocalPlayers(AbstractGame.java:85)
	at games.strategy.engine.framework.AbstractGame.<init>(AbstractGame.java:65)
	at games.strategy.engine.framework.ServerGame.<init>(ServerGame.java:119)
	at games.strategy.engine.framework.ServerGame.<init>(ServerGame.java:101)
	at games.strategy.engine.framework.startup.launcher.LocalLauncher.loadGame(LocalLauncher.java:69)
	at games.strategy.engine.framework.startup.launcher.LocalLauncher.launch(LocalLauncher.java:59)
	at games.strategy.engine.framework.startup.ui.panels.main.MainPanelBuilder.lambda$launch$3(MainPanelBuilder.java:58)
	at java.base/java.lang.Thread.run(Thread.java:829)


@tripleabuilderbot tripleabuilderbot added 2.7 Error Report Issue reported via the in-game error reporter labels Dec 7, 2024
@TheDog-GH
Copy link
Contributor

ai flowfield is a test ai and should be removed from the 2.7 build.

@frigoref @asvitkine please could you do the honours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.7 Error Report Issue reported via the in-game error reporter
Projects
None yet
Development

No branches or pull requests

2 participants