{"action":"closed","issue":{"url":"https://api.github.com/repos/google/dagger/issues/443","repository_url":"https://api.github.com/repos/google/dagger","labels_url":"https://api.github.com/repos/google/dagger/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/google/dagger/issues/443/comments","events_url":"https://api.github.com/repos/google/dagger/issues/443/events","html_url":"https://github.com/google/dagger/issues/443","id":172111508,"number":443,"title":"codegen NullPointerException at dagger.shaded.auto.common.MoreElements.asExecutable(MoreElements.java:173)","user":{"login":"vorburger","id":298598,"avatar_url":"https://avatars.githubusercontent.com/u/298598?v=3","gravatar_id":"","url":"https://api.github.com/users/vorburger","html_url":"https://github.com/vorburger","followers_url":"https://api.github.com/users/vorburger/followers","following_url":"https://api.github.com/users/vorburger/following{/other_user}","gists_url":"https://api.github.com/users/vorburger/gists{/gist_id}","starred_url":"https://api.github.com/users/vorburger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vorburger/subscriptions","organizations_url":"https://api.github.com/users/vorburger/orgs","repos_url":"https://api.github.com/users/vorburger/repos","events_url":"https://api.github.com/users/vorburger/events{/privacy}","received_events_url":"https://api.github.com/users/vorburger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-19T11:30:40Z","updated_at":"2016-10-07T16:42:49Z","closed_at":"2016-10-07T16:42:49Z","body":"Perhaps you'd like to harden the generator code against this NullPointerException (seen in an IDE) ?\r\n\r\n```\r\n!MESSAGE Exception thrown by Java annotation processor dagger.internal.codegen.ComponentProcessor@17bf168e\r\n!STACK 0\r\njava.lang.Exception: java.lang.NullPointerException\r\n\tat org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:169)\r\n\tat org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:110)\r\n\tat org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:159)\r\n\tat org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:135)\r\n\tat org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:915)\r\n\tat org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:437)\r\n\tat org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:456)\r\n\tat org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:417)\r\n\tat org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:368)\r\n\tat org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:179)\r\n\tat org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:305)\r\n\tat org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:61)\r\n\tat org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:256)\r\n\tat org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:175)\r\n\tat org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)\r\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)\r\n\tat org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)\r\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)\r\n\tat org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)\r\n\tat org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:487)\r\n\tat org.eclipse.core.internal.resources.Workspace.build(Workspace.java:399)\r\n\tat org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$3.run(SetupTaskPerformer.java:3066)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\r\nCaused by: java.lang.NullPointerException\r\n\tat dagger.shaded.auto.common.MoreElements.asExecutable(MoreElements.java:173)\r\n\tat dagger.internal.codegen.DependencyRequestFormatter$1.visitVariableAsParameter(DependencyRequestFormatter.java:130)\r\n\tat dagger.internal.codegen.DependencyRequestFormatter$1.visitVariableAsParameter(DependencyRequestFormatter.java:97)\r\n\tat javax.lang.model.util.ElementKindVisitor6.visitVariable(ElementKindVisitor6.java:235)\r\n\tat org.eclipse.jdt.internal.compiler.apt.model.VariableElementImpl.accept(VariableElementImpl.java:56)\r\n\tat dagger.internal.codegen.DependencyRequestFormatter.format(DependencyRequestFormatter.java:96)\r\n\tat dagger.internal.codegen.DependencyRequestFormatter.format(DependencyRequestFormatter.java:63)\r\n\tat dagger.internal.codegen.Formatter.apply(Formatter.java:50)\r\n\tat dagger.internal.codegen.Formatter.apply(Formatter.java:32)\r\n\tat com.google.common.collect.Iterators$8.transform(Iterators.java:817)\r\n\tat com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)\r\n\tat com.google.common.collect.Iterators$7.computeNext(Iterators.java:674)\r\n\tat com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)\r\n\tat com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)\r\n\tat com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:409)\r\n\tat com.google.common.collect.ImmutableList$Builder.addAll(ImmutableList.java:692)\r\n\tat com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256)\r\n\tat com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:209)\r\n\tat com.google.common.collect.FluentIterable.toList(FluentIterable.java:484)\r\n\tat dagger.internal.codegen.DependencyRequestFormatter.toDependencyTrace(DependencyRequestFormatter.java:86)\r\n\tat dagger.internal.codegen.BindingGraphValidator$Validation.reportCycle(BindingGraphValidator.java:1163)\r\n\tat dagger.internal.codegen.BindingGraphValidator$Validation.traverseDependencyRequest(BindingGraphValidator.java:341)\r\n\tat dagger.internal.codegen.BindingGraphValidator$Validation.traverseDependencyRequest(BindingGraphValidator.java:354)\r\n\tat dagger.internal.codegen.BindingGraphValidator$Validation.traverseDependencyRequest(BindingGraphValidator.java:354)\r\n\tat dagger.internal.codegen.BindingGraphValidator$Validation.validateSubgraph(BindingGraphValidator.java:278)\r\n\tat dagger.internal.codegen.BindingGraphValidator.validate(BindingGraphValidator.java:1209)\r\n\tat dagger.internal.codegen.ComponentProcessingStep.process(ComponentProcessingStep.java:139)\r\n\tat dagger.internal.codegen.ComponentProcessingStep.process(ComponentProcessingStep.java:47)\r\n\tat dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:318)\r\n\tat dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:171)\r\n\tat org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:139)\r\n\t... 26 more\r\n```"}}
{"actor":{"display_login":"ronshapiro"}}