<?xml version='1.0' encoding='utf-8'?>
<rule kind="rule" number="2-324" name="Preservation of Certain Defenses" slug="rule-2-324" guid="N588827C09CEA11DB9BCF9DAC28345A2A">
  <level label="a" heading="Defenses Not Waived.">
    <text>A defense of failure to state a claim upon which relief can be granted, a defense of failure to join a party under Rule 2-211, an objection of failure to state a legal defense to a claim, and a defense of governmental immunity may be made in any pleading or by motion for summary judgment under Rule 2-501 or at the trial on the merits.</text>
  </level>
  <level label="b" heading="Subject Matter Jurisdiction.">
    <text>Whenever it appears that the court lacks jurisdiction of the subject matter, the court shall dismiss the action.</text>
  </level>
  <note kind="source">Source: This Rule is derived as follows:</note>
  <note kind="source">Section (a) is derived from the 1966 version of Fed. R. Civ. P. 12 (h)(2) and former Rule 323 b.</note>
  <note kind="source">Section (b) is derived from the 1966 version of Fed. R. Civ. P. 12 (h)(3).</note>
</rule>
