public String getString(long id) throws SQLException {
		if (id == 0) {
			return null;
		}
		StringRecord rec = idMap.get((int) id);
		if (rec != null) {
			moveToEnd(rec);
			return rec.value;
		}
		String res = readStringRecord(id);
		if (res == null) {
			throw new SQLException("Id is not present in string table: " + name);
		}
		return res;
	}
Try to fetch string from our memory cache, or load it from database, or return empty string

@param id the row ID
@return the string fetched from the table, or empty string if not found
@throws SQLException if there is a problem parsing the table record(s)
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/client/tables/SQLStringTable.java