### Question:
CheckModuleAdapter extends ModuleVisitor { @Override public void visitExport(final String packaze, final int access, final String... modules) { checkVisitEndNotCalled(); CheckMethodAdapter.checkInternalName(Opcodes.V9, packaze, "package name"); exportedPackages.checkNameNotAlreadyDeclared(packaze); CheckClassAdapter.checkAccess(access, Opcodes.ACC_SYNTHETIC | Opcodes.ACC_MANDATED); if (modules != null) { for (String module : modules) { CheckClassAdapter.checkFullyQualifiedName(Opcodes.V9, module, "module export to"); } } super.visitExport(packaze, access, modules); } CheckModuleAdapter(final ModuleVisitor moduleVisitor, final boolean isOpen); protected  CheckModuleAdapter(
      final int api, final ModuleVisitor moduleVisitor, final boolean isOpen); @Override void visitMainClass(final String mainClass); @Override void visitPackage(final String packaze); @Override void visitRequire(final String module, final int access, final String version); @Override void visitExport(final String packaze, final int access, final String... modules); @Override void visitOpen(final String packaze, final int access, final String... modules); @Override void visitUse(final String service); @Override void visitProvide(final String service, final String... providers); @Override void visitEnd();  }### Answer:
@Test public void testVisitExport_nullArray() { CheckModuleAdapter checkModuleAdapter = new CheckModuleAdapter(null, false); Executable visitExport = () -> checkModuleAdapter.visitExport("package", 0, (String[]) null); assertDoesNotThrow(visitExport); }