--- old/src/jdk.incubator.jpackage/share/native/libapplauncher/IniFile.cpp 2019-12-11 10:08:50.670711600 -0500 +++ new/src/jdk.incubator.jpackage/share/native/libapplauncher/IniFile.cpp 2019-12-11 10:08:48.426339300 -0500 @@ -109,9 +109,9 @@ for (unsigned int index = 0; index < keys.size(); index++) { TString name = keys[index]; - IniSectionData *section; + IniSectionData *section = NULL; - if (FMap.GetValue(name, section) == true) { + if (FMap.GetValue(name, section) == true && section != NULL) { contents.push_back(_T("[") + name + _T("]")); std::list lines = section->GetLines(); contents.insert(contents.end(), lines.begin(), lines.end()); @@ -128,7 +128,7 @@ void IniFile::Append(const TString SectionName, const TString Key, TString Value) { if (FMap.ContainsKey(SectionName) == true) { - IniSectionData* section; + IniSectionData* section = NULL; if (FMap.GetValue(SectionName, section) == true && section != NULL) { section->SetValue(Key, Value); @@ -144,7 +144,7 @@ void IniFile::AppendSection(const TString SectionName, OrderedMap Values) { if (FMap.ContainsKey(SectionName) == true) { - IniSectionData* section; + IniSectionData* section = NULL; if (FMap.GetValue(SectionName, section) == true && section != NULL) { section->Append(Values); @@ -159,7 +159,7 @@ bool IniFile::GetValue(const TString SectionName, const TString Key, TString& Value) { bool result = false; - IniSectionData* section; + IniSectionData* section = NULL; if (FMap.GetValue(SectionName, section) == true && section != NULL) { result = section->GetValue(Key, Value); @@ -171,7 +171,7 @@ bool IniFile::SetValue(const TString SectionName, const TString Key, TString Value) { bool result = false; - IniSectionData* section; + IniSectionData* section = NULL; if (FMap.GetValue(SectionName, section) && section != NULL) { result = section->SetValue(Key, Value);