initial project fix
All checks were successful
studiorailgun/highlevel-netcode-gen/pipeline/head This commit looks good

This commit is contained in:
austin 2024-06-18 20:59:24 -04:00
parent f1f4375578
commit 113edf1cbe

View File

@ -325,6 +325,11 @@ public class ProjectStructure {
* @return the id * @return the id
*/ */
private int getFieldId(String bTreeName, String fieldName){ private int getFieldId(String bTreeName, String fieldName){
//init the map if it doesn't already exist (ie the file doesn't exist)
if(existingFieldNameToIdMap == null){
existingFieldNameToIdMap = new HashMap<String,Integer>();
}
//get the id
String qualifiedName = bTreeName.toUpperCase() + "_" + fieldName.toUpperCase(); String qualifiedName = bTreeName.toUpperCase() + "_" + fieldName.toUpperCase();
if(existingFieldNameToIdMap.containsKey(qualifiedName)){ if(existingFieldNameToIdMap.containsKey(qualifiedName)){
return existingFieldNameToIdMap.get(qualifiedName); return existingFieldNameToIdMap.get(qualifiedName);