{"action":"created","issue":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/655","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/655/labels{/name}","comments_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/655/comments","events_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/655/events","html_url":"https://github.com/mapstruct/mapstruct/issues/655","id":110235644,"number":655,"title":"NullPointerException using Mapstruct within eclipse + M2E","user":{"login":"dziegenbalg","id":15016192,"avatar_url":"https://avatars.githubusercontent.com/u/15016192?v=3","gravatar_id":"","url":"https://api.github.com/users/dziegenbalg","html_url":"https://github.com/dziegenbalg","followers_url":"https://api.github.com/users/dziegenbalg/followers","following_url":"https://api.github.com/users/dziegenbalg/following{/other_user}","gists_url":"https://api.github.com/users/dziegenbalg/gists{/gist_id}","starred_url":"https://api.github.com/users/dziegenbalg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dziegenbalg/subscriptions","organizations_url":"https://api.github.com/users/dziegenbalg/orgs","repos_url":"https://api.github.com/users/dziegenbalg/repos","events_url":"https://api.github.com/users/dziegenbalg/events{/privacy}","received_events_url":"https://api.github.com/users/dziegenbalg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapstruct/mapstruct/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mapstruct/mapstruct/milestones/10","html_url":"https://github.com/mapstruct/mapstruct/milestones/1.0.0.Final","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/milestones/10/labels","id":1261242,"number":10,"title":"1.0.0.Final","description":"","creator":{"login":"gunnarmorling","id":28612,"avatar_url":"https://avatars.githubusercontent.com/u/28612?v=3","gravatar_id":"","url":"https://api.github.com/users/gunnarmorling","html_url":"https://github.com/gunnarmorling","followers_url":"https://api.github.com/users/gunnarmorling/followers","following_url":"https://api.github.com/users/gunnarmorling/following{/other_user}","gists_url":"https://api.github.com/users/gunnarmorling/gists{/gist_id}","starred_url":"https://api.github.com/users/gunnarmorling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunnarmorling/subscriptions","organizations_url":"https://api.github.com/users/gunnarmorling/orgs","repos_url":"https://api.github.com/users/gunnarmorling/repos","events_url":"https://api.github.com/users/gunnarmorling/events{/privacy}","received_events_url":"https://api.github.com/users/gunnarmorling/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":3,"state":"open","created_at":"2015-08-18T19:04:48Z","updated_at":"2015-11-06T18:41:39Z","due_on":"2015-11-17T23:00:00Z","closed_at":null},"comments":7,"created_at":"2015-10-07T14:19:11Z","updated_at":"2015-11-06T18:54:42Z","closed_at":null,"body":"The following error occured in a maven-project within eclipse (build via maven is working):\r\n\r\nInternal error in the mapping processor: java.lang.NullPointerException  \tat org.mapstruct.ap.internal.model.source.MethodMatcher.isWithinBounds(MethodMatcher.java:395)  \tat org.mapstruct.ap.internal.model.source.MethodMatcher.matches(MethodMatcher.java:138)  \tat org.mapstruct.ap.internal.model.source.SourceMethod.matches(SourceMethod.java:482)  \tat org.mapstruct.ap.internal.model.source.selector.TypeSelector.getMatchingMethods(TypeSelector.java:44)  \tat org.mapstruct.ap.internal.model.source.selector.MethodSelectors.getMatchingMethods(MethodSelectors.java:61)  \tat org.mapstruct.ap.internal.processor.creation.MappingResolverImpl$ResolvingAttempt.getBestMatch(MappingResolverImpl.java:437)  \tat org.mapstruct.ap.internal.processor.creation.MappingResolverImpl$ResolvingAttempt.resolveViaMethod(MappingResolverImpl.java:263)  \tat org.mapstruct.ap.internal.processor.creation.MappingResolverImpl$ResolvingAttempt.getTargetAssignment(MappingResolverImpl.java:189)  \tat org.mapstruct.ap.internal.processor.creation.MappingResolverImpl$ResolvingAttempt.access$100(MappingResolverImpl.java:147)  \tat org.mapstruct.ap.internal.processor.creation.MappingResolverImpl.getTargetAssignment(MappingResolverImpl.java:115)  \tat org.mapstruct.ap.internal.model.PropertyMapping$PropertyMappingBuilder.build(PropertyMapping.java:180)  \tat org.mapstruct.ap.internal.model.BeanMappingMethod$Builder.applyPropertyNameBasedMapping(BeanMappingMethod.java:426)  \tat org.mapstruct.ap.internal.model.BeanMappingMethod$Builder.build(BeanMappingMethod.java:127)  \tat org.mapstruct.ap.internal.processor.MapperCreationProcessor.getMappingMethods(MapperCreationProcessor.java:349)  \tat org.mapstruct.ap.internal.processor.MapperCreationProcessor.getMapper(MapperCreationProcessor.java:143)  \tat org.mapstruct.ap.internal.processor.MapperCreationProcessor.process(MapperCreationProcessor.java:114)  \tat org.mapstruct.ap.internal.processor.MapperCreationProcessor.process(MapperCreationProcessor.java:73)  \tat org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:220)  \tat org.mapstruct.ap.MappingProcessor.processMapperTypeElement(MappingProcessor.java:200)  \tat org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:166)  \tat org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:139)  \tat org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:121)  \tat org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:159)  \tat org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:134)  \tat org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:967)  \tat org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:489)  \tat org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:395)  \tat org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.compile(IncrementalImageBuilder.java:331)  \tat org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:332)  \tat org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:136)  \tat org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:267)  \tat org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:195)  \tat org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)  \tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)  \tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205)  \tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245)  \tat org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300)  \tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)  \tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303)  \tat org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359)  \tat org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382)  \tat org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)  \tat org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)  \tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)  "},"comment":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/comments/154500472","html_url":"https://github.com/mapstruct/mapstruct/issues/655#issuecomment-154500472","issue_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/655","id":154500472,"user":{"login":"gunnarmorling","id":28612,"avatar_url":"https://avatars.githubusercontent.com/u/28612?v=3","gravatar_id":"","url":"https://api.github.com/users/gunnarmorling","html_url":"https://github.com/gunnarmorling","followers_url":"https://api.github.com/users/gunnarmorling/followers","following_url":"https://api.github.com/users/gunnarmorling/following{/other_user}","gists_url":"https://api.github.com/users/gunnarmorling/gists{/gist_id}","starred_url":"https://api.github.com/users/gunnarmorling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunnarmorling/subscriptions","organizations_url":"https://api.github.com/users/gunnarmorling/orgs","repos_url":"https://api.github.com/users/gunnarmorling/repos","events_url":"https://api.github.com/users/gunnarmorling/events{/privacy}","received_events_url":"https://api.github.com/users/gunnarmorling/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T18:54:42Z","updated_at":"2015-11-06T18:54:42Z","body":"Running your test case (thanks for that), I actually get no NPE but the same error as in #644. Could you double-check whether you really see the NPE with this set-up? Or maybe the test case does not exactly represent your original situation?"}}