< prev index next >

src/jdk.incubator.jpackage/share/native/libapplauncher/IniFile.cpp

Print this page

        

@@ -109,11 +109,11 @@
 
     for (unsigned int index = 0; index < keys.size(); index++) {
         TString name = keys[index];
         IniSectionData *section;
 
-        if (FMap.GetValue(name, section) == true) {
+        if (FMap.GetValue(name, section) == true && section != NULL) {
             contents.push_back(_T("[") + name + _T("]"));
             std::list<TString> lines = section->GetLines();
             contents.insert(contents.end(), lines.begin(), lines.end());
             contents.push_back(_T(""));
         }
< prev index next >