我正在尝试执行 java 程序,但似乎当前代码在这段代码上返回空指针异常:
IntegerDesc yearOfBuildDesc =
(IntegerDesc) myConcept.getAllAttributeDescs().get("yearOfBuild");
try {
query.addAttribute(yearOfBuildDesc,
yearOfBuildDesc.getAttribute("yearOfBuild"));
}
catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
你知道问题可能来自哪里吗?