Skip to content

005_0001 - EmptyStringCheckNotComplete

Empty String check not complete

Always check a string for empty based on != empty and != "". The first one equals database NULL value, the latter one indicates a truncated string.

Metadata

authors:
- Xiwen Cheng <x@cinaq.com>
category: Error
input: .*\$Microflow\.yaml
rulename: EmptyStringCheckNotComplete
rulenumber: '005_0001'
scope: package
severity: MEDIUM

Description

Technically, there is a difference between empty and "". Make sure to check them both.

Remediation

Always check a string for empty based on != empty and != "". The first one equals database NULL value, the latter one indicates a truncated string.

Test cases

# No test file found