NPE due to null e-mails of users in servicedesk orgs

Description

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 java.lang.NullPointerException at com.codebarrel.automation.rulecomponent.jira.service.ServiceDeskComponentService.lambda$getOrCreateOrgForDomain$9(ServiceDeskComponentService.java:133) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1359) at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126) at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464) at com.codebarrel.automation.rulecomponent.jira.service.ServiceDeskComponentService.getOrCreateOrgForDomain(ServiceDeskComponentService.java:138) at com.codebarrel.automation.rulecomponent.jira.service.ServiceDeskComponentService.getOrCreateOrganizationForUser(ServiceDeskComponentService.java:97) at com.codebarrel.automation.rulecomponent.jira.common.issueconfigfields.servicedesk.OrganizationSelectField.lambda$getOrganizationFromReporterEmail$1(OrganizationSelectField.java:135) at java.util.Optional.flatMap(Optional.java:241) at com.codebarrel.automation.rulecomponent.jira.common.issueconfigfields.servicedesk.OrganizationSelectField.getOrganizationFromReporterEmail(OrganizationSelectField.java:135) at com.codebarrel.automation.rulecomponent.jira.common.issueconfigfields.servicedesk.OrganizationSelectField.lambda$mapRawValueToOrgIds$0(OrganizationSelectField.java:115) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at com.codebarrel.automation.rulecomponent.jira.common.issueconfigfields.servicedesk.OrganizationSelectField.getOrganizationIds(OrganizationSelectField.java:96) at com.codebarrel.automation.rulecomponent.jira.common.issueconfigfields.servicedesk.OrganizationSelectField.addOperationToBuilder(OrganizationSelectField.java:86) at com.codebarrel.automation.rulecomponent.jira.common.IssueFieldsBuilderImpl.lambda$buildRequest$2(IssueFieldsBuilderImpl.java:154) at java.util.ArrayList.forEach(ArrayList.java:1257) at com.codebarrel.automation.rulecomponent.jira.common.IssueFieldsBuilderImpl.buildRequest(IssueFieldsBuilderImpl.java:135) at com.codebarrel.automation.rulecomponent.jira.action.edit.EditIssueActionExecutor.lambda$executeWithIssues$1(EditIssueActionExecutor.java:95) at java.util.ArrayList.forEach(ArrayList.java:1257) at com.codebarrel.automation.rulecomponent.jira.action.edit.EditIssueActionExecutor.executeWithIssues(EditIssueActionExecutor.java:91) at com.codebarrel.automation.api.component.executor.IssueRequiredExecutor.execute(IssueRequiredExecutor.java:28) at com.codebarrel.automation.api.component.executor.IssueRequiredExecutor.execute(IssueRequiredExecutor.java:16) at com.codebarrel.automation.api.service.ComponentChainImpl.doExecute(ComponentChainImpl.java:100) at com.codebarrel.automation.api.service.SingleRuleExecutorServiceImpl.execute(SingleRuleExecutorServiceImpl.java:194) at com.codebarrel.automation.service.AutomationExecutionServiceImpl.lambda$processEvent$4(AutomationExecutionServiceImpl.java:78) at java.util.ArrayList.forEach(ArrayList.java:1257) at com.codebarrel.automation.service.AutomationExecutionServiceImpl.processEvent(AutomationExecutionServiceImpl.java:78) at com.codebarrel.automation.service.AutomationExecutionServiceImpl$$EnhancerByGuice$$3113c795.CGLIB$processEvent$0(<generated>) at com.codebarrel.automation.service.AutomationExecutionServiceImpl$$EnhancerByGuice$$3113c795$$FastClassByGuice$$428f647c.invoke(<generated>) at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) at com.codebarrel.lambda.util.TimingInterceptor.invoke(TimingInterceptor.java:38) at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55) at com.codebarrel.automation.service.AutomationExecutionServiceImpl$$EnhancerByGuice$$3113c795.processEvent(<generated>) at com.codebarrel.aws.lambda.automation.QueueConsumer.executeItem(QueueConsumer.java:102) at com.codebarrel.aws.lambda.automation.QueueConsumer.lambda$handleRequest$1(QueueConsumer.java:73) at java.util.ArrayList.forEach(ArrayList.java:1257) at com.codebarrel.aws.lambda.automation.QueueConsumer.handleRequest(QueueConsumer.java:70) at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at lambdainternal.EventHandlerLoader$PojoMethodRequestHandler.handleRequest(EventHandlerLoader.java:259) at lambdainternal.EventHandlerLoader$PojoHandlerAsStreamHandler.handleRequest(EventHandlerLoader.java:178) at lambdainternal.EventHandlerLoader$2.call(EventHandlerLoader.java:888) at lambdainternal.AWSLambda.startRuntime(AWSLambda.java:293) at lambdainternal.AWSLambda.<clinit>(AWSLambda.java:64) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at lambdainternal.LambdaRTEntry.main(LambdaRTEntry.java:104)

Environment

None

Status

Assignee

Andreas Knecht

Reporter

Andreas Knecht

Links

0

Fix versions

Priority