public boolean isMissingNullTerminator() {

		if (stringLayout.shouldTrimTrailingNulls()) {
			String str = getStringValueNoTrim();
			return (str != null) && (str.length() > 0) && str.charAt(str.length() - 1) != 0;
		}
		return false;
	}
Returns true if the string should have a trailing NULL character and doesn't.

@return boolean true if the trailing NULL character is missing, false if string type doesn't
        need a trailing NULL character or if it is present.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StringDataInstance.java