2023-07-03 17:26:15 +02:00
|
|
|
== How to fix it
|
|
|
|
|
2023-10-23 14:29:59 +02:00
|
|
|
To fix the issue, the access of the `{null-keyword}` value needs to be prevented by either:
|
2023-07-03 17:26:15 +02:00
|
|
|
|
|
|
|
* ensuring the variable has a value, or
|
|
|
|
* by checking if the value is not `{null-keyword}`
|
|
|
|
|
|
|
|
=== Code examples
|
|
|
|
|
|
|
|
==== Noncompliant code example
|
|
|
|
|
|
|
|
include::{language}/noncompliant-code.adoc[]
|
|
|
|
|
|
|
|
==== Compliant solution
|
|
|
|
|
|
|
|
include::{language}/compliant-code.adoc[]
|