Existing law permits a defendant or a cross-defendant in a civil proceeding under the Government Claims Act, or in any civil action for indemnity or contribution, to seek from the court, at the time of the granting of a motion for summary judgment, directed verdict, motion for judgment in a nonjury trial, or nonsuit dismissing the moving party other than the plaintiff, petitioner, cross-complainant, or intervenor, to determine whether the plaintiff, petitioner, cross-complainant, or intervenor brought their proceeding in good faith and with reasonable cause. If the court determines that the proceeding was not brought in good faith or with reasonable cause, existing law requires the court to decide the reasonable and necessary defense costs incurred by party opposing the proceeding and to render judgment in favor of that party. Existing law applies these provisions only if the defendant or cross-defendant has made a motion for summary judgment, a motion for directed verdict, a motion for judgment in a nonjury trial, or nonsuit.
This bill would expand the above provision to apply to a demurrer brought by a defendant or cross-defendant.