private boolean isNullChar(byte[] charBuf) {
		for (byte element : charBuf) {
			if (element != 0) {
				return false;
			}
		}
		return true;
	}
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