diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonVisitor.java b/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonVisitor.java index 4933c5820..c82b298b0 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonVisitor.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/impl/report/JCLComparisonVisitor.java @@ -161,7 +161,7 @@ class JCLComparisonVisitor extends ClassVisitor { @Override public void visitEnd() { - if (jclClass == null || jclClass.status != JCLStatus.FOUND) { + if (jclPackage != null && (jclClass == null || jclClass.status != JCLStatus.FOUND)) { jclPackage.status = JCLStatus.PARTIAL; } }