---
title: "Protect Groovy formulas against null values"
canonical: "https://support.appfire.com/space/JMCF/465437161/Protect%20Groovy%20formulas%20against%20null%20values"
format: markdown
---
> Macro (aura-html)

<span style="color: #333333">When you access a field of an issue, </span><span style="color: #222222">you might need to verify that it is not</span><span style="color: #222222"> </span>`null`<span style="color: #222222"> before calling a method on the value of that field to avoid null pointer exceptions. </span>This article explains some approaches to protecting your Groovy formulas written in the JMCF Groovy editor against null values. 

## Approaches


## Related articles

> Macro (contentbylabel)


> Macro (details)
> 
> | **Related issues** |  |
> | --- | --- |