提交 20bfe838 编写于 作者: S Skylot

core: fix null pointer in code annotations getter

上级 39093130
......@@ -126,7 +126,11 @@ public final class JavaClass implements JavaNode {
private Map<CodePosition, Object> getCodeAnnotations() {
decompile();
return cls.getCode().getAnnotations();
CodeWriter code = cls.getCode();
if (code == null) {
return Collections.emptyMap();
}
return code.getAnnotations();
}
public Map<CodePosition, JavaNode> getUsageMap() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册