{"action":"opened","issue":{"url":"https://api.github.com/repos/paul-hammant/qdox/issues/43","repository_url":"https://api.github.com/repos/paul-hammant/qdox","labels_url":"https://api.github.com/repos/paul-hammant/qdox/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/paul-hammant/qdox/issues/43/comments","events_url":"https://api.github.com/repos/paul-hammant/qdox/issues/43/events","html_url":"https://github.com/paul-hammant/qdox/issues/43","id":310098016,"number":43,"title":"java.lang.NullPointerException when parsing source directory","user":{"login":"edwardharks","id":1922349,"avatar_url":"https://avatars0.githubusercontent.com/u/1922349?v=4","gravatar_id":"","url":"https://api.github.com/users/edwardharks","html_url":"https://github.com/edwardharks","followers_url":"https://api.github.com/users/edwardharks/followers","following_url":"https://api.github.com/users/edwardharks/following{/other_user}","gists_url":"https://api.github.com/users/edwardharks/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardharks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardharks/subscriptions","organizations_url":"https://api.github.com/users/edwardharks/orgs","repos_url":"https://api.github.com/users/edwardharks/repos","events_url":"https://api.github.com/users/edwardharks/events{/privacy}","received_events_url":"https://api.github.com/users/edwardharks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-30T15:44:06Z","updated_at":"2018-03-30T15:44:06Z","closed_at":null,"author_association":"NONE","body":"I'm parsing a directory containing Java source files and I get the following exception:\r\n\r\n```\r\nException in thread \"main\" java.lang.NullPointerException\r\n        at com.thoughtworks.qdox.builder.impl.ModelBuilder.createTypeVariable(ModelBuilder.java:503)\r\n        at com.thoughtworks.qdox.builder.impl.ModelBuilder.endMethod(ModelBuilder.java:470)\r\n        at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:2158)\r\n        at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:1732)\r\n        at com.thoughtworks.qdox.library.SourceLibrary.parse(SourceLibrary.java:232)\r\n        at com.thoughtworks.qdox.library.SourceLibrary.parse(SourceLibrary.java:209)\r\n        at com.thoughtworks.qdox.library.SourceLibrary.addSource(SourceLibrary.java:159)\r\n        at com.thoughtworks.qdox.library.SortedClassLibraryBuilder.addSource(SortedClassLibraryBuilder.java:174)\r\n        at com.thoughtworks.qdox.JavaProjectBuilder.addSource(JavaProjectBuilder.java:151)\r\n        at com.thoughtworks.qdox.JavaProjectBuilder$2.visitFile(JavaProjectBuilder.java:224)\r\n        at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:103)\r\n        at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:91)\r\n        at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:91)\r\n        at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:91)\r\n        at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:81)\r\n        at com.thoughtworks.qdox.JavaProjectBuilder.addSourceTree(JavaProjectBuilder.java:218)\r\n        at com.thoughtworks.qdox.JavaProjectBuilder.addSourceTree(JavaProjectBuilder.java:205)\r\n        at com.edwardharker.methodsextractor.MethodsExtractor.parseClasses(MethodsExtractor.kt:20)\r\n        at com.edwardharker.methodsextractor.MethodsExtractor.main(MethodsExtractor.kt:11)\r\n\r\n```\r\n\r\nThis is my code:\r\n```\r\nJavaProjectBuilder builder = new JavaProjectBuilder()\r\nbuilder.addSourceTree(new File(sourceDir))\r\n```"}}
{"actor":{"display_login":"edwardharks"}}