记录一次莫名其妙的错误

for (String k:chapterTree.keySet()) {
            sb.append(String.format("<h2>%s</h2>",k));

            List<String> vls = chapterTree.get(k); //debug显示 k为 "第一章 课程前言"  chapterTree 为   "第一章 课程前言"-> list。但vls返回的null
            for (String v:vls){
                sb.append(String.format("<p>&nbsp;&nbsp;%s</p>",v));
            }
        }
原文地址:https://www.cnblogs.com/mxjhaima/p/13765995.html