Closed raylax closed 4 years ago
TsfSwaggerAutoConfiguration中
private static Function<Class<?>, Boolean> handlerPackage(final String basePackage) { return (input) -> { if (StringUtils.isEmpty(basePackage)) { return false; } else { String[] packages = basePackage.trim().split(","); String[] var3 = packages; int var4 = packages.length; for(int var5 = 0; var5 < var4; ++var5) { String strPackage = var3[var5]; if (input != null) { // 这里 boolean isMatch = input.getPackage().getName().startsWith(strPackage); if (isMatch) { return true; } } } return false; } }; }
如果input是javassist生成的input.getPackage().getName()会报空指针
input
javassist
input.getPackage().getName()
TsfSwaggerAutoConfiguration中
如果
input
是javassist
生成的input.getPackage().getName()
会报空指针