Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException if apiSource/outputFormats is not present #872

Open
cidus opened this issue Nov 19, 2021 · 3 comments
Open

NullPointerException if apiSource/outputFormats is not present #872

cidus opened this issue Nov 19, 2021 · 3 comments

Comments

@cidus
Copy link

cidus commented Nov 19, 2021

Caught this updating from 3.1.6 to 3.1.8

Caused by: java.lang.NullPointerException
at com.github.kongchen.swagger.docgen.AbstractDocumentSource.toSwaggerDocuments (AbstractDocumentSource.java:203)
at com.github.kongchen.swagger.docgen.mavenplugin.ApiDocumentMojo.execute (ApiDocumentMojo.java:130)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)

Full stacktrace: https://pastebin.com/Yp57y2Xs

@msangel
Copy link

msangel commented Aug 3, 2022

Thanks! You save my day!

@ricardojlrufino
Copy link

thank !

please put this in examples of readme to avoid mistakes.

@ankit--sethi
Copy link

what is the workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants