[java decompiler] fixes NPE in import collector

master
Roman Shevchenko 7 years ago
parent 29de7ad72e
commit bb913e6814
  1. 2
      src/org/jetbrains/java/decompiler/main/collectors/ImportCollector.java

@ -72,7 +72,7 @@ public class ImportCollector {
StringBuilder result = null; StringBuilder result = null;
if (node != null && node.classStruct.isOwn()) { if (node != null && node.classStruct.isOwn()) {
result = new StringBuilder(node.simpleName); result = new StringBuilder(String.valueOf(node.simpleName));
while (node.parent != null && node.type == ClassNode.CLASS_MEMBER) { while (node.parent != null && node.type == ClassNode.CLASS_MEMBER) {
result.insert(0, node.parent.simpleName + '.'); result.insert(0, node.parent.simpleName + '.');

Loading…
Cancel
Save