<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error: Matches#lambda$ unit Has Taken Some Bombing Unit Damage $43:386]]></title><description><![CDATA[<p dir="auto">Im working on my latest map and with this code</p>
<pre><code>&lt;property name="Damage From Bombing Done To Units Instead Of Territories" value="true" editable="false"
</code></pre>
<p dir="auto">I get this error message after 6-9 turns.</p>
<pre><code>2.5.22294: Matches#lambda$unitHasTakenSomeBombingUnitDamage$43:386 - java.lang.NullPointerException

## Map
feudal_nippon

## TripleA Version
2.5.22294

## Java Version
11.0.6

## Operating System
Windows 10

## Memory
Heap utilization statistics [MB]
Used Memory: 323
Free memory: 1656
Total memory: 1979
Max memory: 1979


## Stack Trace

Exception: java.lang.NullPointerException
java.lang.Exception
	at games.strategy.triplea.delegate.Matches.lambda$unitHasTakenSomeBombingUnitDamage$43(Matches.java:386)
	at games.strategy.triplea.ai.pro.ProPurchaseAi.repair(ProPurchaseAi.java:105)
	at games.strategy.triplea.ai.pro.AbstractProAi.purchase(AbstractProAi.java:172)
	at games.strategy.triplea.ai.AbstractAi.start(AbstractAi.java:507)
	at games.strategy.engine.framework.ServerGame.waitForPlayerToFinishStep(ServerGame.java:537)
	at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:407)
	at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:297)
	at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInternal(LocalLauncher.java:82)
	at games.strategy.engine.framework.startup.launcher.LocalLauncher.lambda$launch$0(LocalLauncher.java:56)
	at java.base/java.lang.Thread.run(Thread.java:834)
</code></pre>
<p dir="auto">For a few turns it works fine then errors <img src="https://forums.triplea-game.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=fbe62970dd5" class="not-responsive emoji emoji-android emoji--confused" style="height:1.4em;width:auto;vertical-align:middle" title=":-/" alt="😕" /></p>
<p dir="auto">It gives</p>
<ul>
<li>Territory units placement is based off &lt;option name="canProduceXUnits" value="4"/&gt;</li>
<li>Bombing attacks units</li>
</ul>
<p dir="auto">Setting it to <strong>false</strong> and I get <strong>no</strong> error message but it does the two things I dont want.</p>
<ul>
<li>Territory units placement is based off the territory PU</li>
<li>Bombing attacks the territory and not the unit.</li>
</ul>
<p dir="auto"><strong>Any guidance for where to look or what to test?</strong></p>
]]></description><link>https://forums.triplea-game.org/topic/2971/error-matches-lambda-unit-has-taken-some-bombing-unit-damage-43-386</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 04:42:57 GMT</lastBuildDate><atom:link href="https://forums.triplea-game.org/topic/2971.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Oct 2021 11:43:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error: Matches#lambda$ unit Has Taken Some Bombing Unit Damage $43:386 on Wed, 06 Oct 2021 19:25:15 GMT]]></title><description><![CDATA[<p dir="auto">I had</p>
<pre><code>&lt;option name="canBeDamaged" value="true"/&gt;
		&lt;option name="canDieFromReachingMaxDamage" value="true"/&gt;
		&lt;option name="maxDamage" value="2"/&gt;
</code></pre>
<p dir="auto">To stop the error add the following to the same unit</p>
<pre><code>&lt;option name="isConstruction" value="true"/&gt;
	&lt;option name="constructionType" value="Recruit"/&gt;
         &lt;option name="maxConstructionsPerTypePerTerr" value="1"/&gt;
	&lt;option name="constructionsPerTerrPerTypePerTurn" value="1"/&gt;
</code></pre>
]]></description><link>https://forums.triplea-game.org/post/52091</link><guid isPermaLink="true">https://forums.triplea-game.org/post/52091</guid><dc:creator><![CDATA[TheDog]]></dc:creator><pubDate>Wed, 06 Oct 2021 19:25:15 GMT</pubDate></item></channel></rss>