{"action":"created","issue":{"url":"https://api.github.com/repos/kongchen/swagger-maven-plugin/issues/180","labels_url":"https://api.github.com/repos/kongchen/swagger-maven-plugin/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/kongchen/swagger-maven-plugin/issues/180/comments","events_url":"https://api.github.com/repos/kongchen/swagger-maven-plugin/issues/180/events","html_url":"https://github.com/kongchen/swagger-maven-plugin/issues/180","id":85728597,"number":180,"title":"@ApiOperation(hidden=true) leads to NullPointerException in AbstractReader","user":{"login":"gruenebe","id":12599965,"avatar_url":"https://avatars.githubusercontent.com/u/12599965?v=3","gravatar_id":"","url":"https://api.github.com/users/gruenebe","html_url":"https://github.com/gruenebe","followers_url":"https://api.github.com/users/gruenebe/followers","following_url":"https://api.github.com/users/gruenebe/following{/other_user}","gists_url":"https://api.github.com/users/gruenebe/gists{/gist_id}","starred_url":"https://api.github.com/users/gruenebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruenebe/subscriptions","organizations_url":"https://api.github.com/users/gruenebe/orgs","repos_url":"https://api.github.com/users/gruenebe/repos","events_url":"https://api.github.com/users/gruenebe/events{/privacy}","received_events_url":"https://api.github.com/users/gruenebe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-06T09:34:07Z","updated_at":"2015-07-02T17:49:18Z","closed_at":null,"body":"First of all I need to say, that I love this plugin :)\r\n\r\nBut when using `@ApiOperation(hidden=true)` to hide a resource completely, I get an Exception during the compile. (https://github.com/swagger-api/swagger-core/wiki/Annotations)\r\n\r\nI have verified this with your example app:\r\nhttps://github.com/kongchen/swagger-maven-example\r\nTo reproduce just use `@ApiOperation(hidden=true)` on any resource and compile.\r\n"},"comment":{"url":"https://api.github.com/repos/kongchen/swagger-maven-plugin/issues/comments/118109038","html_url":"https://github.com/kongchen/swagger-maven-plugin/issues/180#issuecomment-118109038","issue_url":"https://api.github.com/repos/kongchen/swagger-maven-plugin/issues/180","id":118109038,"user":{"login":"gruenebe","id":12599965,"avatar_url":"https://avatars.githubusercontent.com/u/12599965?v=3","gravatar_id":"","url":"https://api.github.com/users/gruenebe","html_url":"https://github.com/gruenebe","followers_url":"https://api.github.com/users/gruenebe/followers","following_url":"https://api.github.com/users/gruenebe/following{/other_user}","gists_url":"https://api.github.com/users/gruenebe/gists{/gist_id}","starred_url":"https://api.github.com/users/gruenebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gruenebe/subscriptions","organizations_url":"https://api.github.com/users/gruenebe/orgs","repos_url":"https://api.github.com/users/gruenebe/repos","events_url":"https://api.github.com/users/gruenebe/events{/privacy}","received_events_url":"https://api.github.com/users/gruenebe/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T17:49:18Z","updated_at":"2015-07-02T17:49:18Z","body":"I don't get a NullPointer anymore with `3.1.1-SNAPSHOT` but I get an almost empty **swagger.json**\r\n\r\n`pom.xml`\r\n```\r\n\r\n    <build>\r\n        <plugins>\r\n            <plugin>\r\n                <groupId>com.github.kongchen</groupId>\r\n                <artifactId>swagger-maven-plugin</artifactId>\r\n                <version>3.1.1-SNAPSHOT</version>\r\n                <configuration>\r\n                    <apiSources>\r\n                        <apiSource>\r\n                            <locations>foo.bar.rest.resources.official</locations>\r\n                            <basePath>foobar/1.2</basePath>\r\n                            <info>\r\n                                <title>Foo Bar</title>\r\n                                <version>1.2</version>\r\n                            </info>\r\n                            <swaggerDirectory>${basedir}/src/main/resources/api</swaggerDirectory>\r\n                        </apiSource>\r\n                        <apiSource>\r\n                            <locations>foo.bar.rest.resources.official</locations>\r\n                            <basePath>/plugins/foobar/1.2</basePath>\r\n                            <info>\r\n                                <title>Foo Bar</title>\r\n                                <version>1.2</version>\r\n                            </info>\r\n                            <swaggerDirectory>${basedir}/generated/</swaggerDirectory>\r\n                        </apiSource>\r\n                    </apiSources>\r\n                </configuration>\r\n                <executions>\r\n                    <execution>\r\n                        <phase>compile</phase>\r\n                        <goals>\r\n                            <goal>generate</goal>\r\n                        </goals>\r\n                    </execution>\r\n                </executions>\r\n            </plugin>\r\n```\r\n\r\n**Result:** `swagger.json`\r\n\r\n```\r\n{\r\n  \"swagger\" : \"2.0\",\r\n  \"info\" : {\r\n    \"version\" : \"1.2\",\r\n    \"title\" : \"Foo Bar\"\r\n  },\r\n  \"basePath\" : \"/foobar/1.2\"\r\n}\r\n```\r\n\r\nI also tested it with the example project and my project. In both cases the swagger.json does not contain any information anymore :("}}