# Incorrect empty string check

<table><thead><tr><th width="138">Check ID</th><th>MF_0002</th></tr></thead><tbody><tr><td>Category</td><td>Quality</td></tr><tr><td>Summary</td><td>It is common when creating microflows to check for empty strings. The recommended way of checking for an empty string is using the Community Commons <strong>IsEmptyString</strong> or <strong>IsNotEmptyString</strong> rule. If this doesn't meet your needs (because you need to perform additional logic in a decision), you need to be careful to check strings in the correct way otherwise it is possible to generate a runtime exception by accessing an empty variable.</td></tr><tr><td>Options</td><td>This check does not have any options.</td></tr><tr><td>Pass</td><td>Your microflow doesn't contain any checks for empty strings that might throw a null pointer exception, or produce an incorrect output (= check for empty string returns true while the string is actually empty).</td></tr><tr><td>Fail</td><td>Your microflow contains a checks for an empty string that might throw a null pointer exception, or produce an incorrect output (= check for empty string returns true while the string is actually empty).</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bluestorm.io/checks/microflow/mf_0002.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
