You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, trying to convert DynamodbEvent to List<Record>, however when the lambda gets excuted, seems like record.getUserIdentity() returns null, therefore breaking toIdentityV2. Is it the case that the user identity is nullable and a safety check is needed?
java.lang.NullPointerException
at com.amazonaws.services.lambda.runtime.events.transformers.dynamodb.DynamodbIdentityTransformer.toIdentityV2(DynamodbIdentityTransformer.java:9)
at com.amazonaws.services.lambda.runtime.events.transformers.dynamodb.DynamodbRecordTransformer.toRecordV2(DynamodbRecordTransformer.java:19)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at com.amazonaws.services.lambda.runtime.events.transformers.DynamodbEventTransformer.toRecordsV2(DynamodbEventTransformer.java:19)
The text was updated successfully, but these errors were encountered:
Hi, trying to convert
DynamodbEvent
toList<Record>
, however when the lambda gets excuted, seems likerecord.getUserIdentity()
returnsnull
, therefore breakingtoIdentityV2
. Is it the case that the user identity is nullable and a safety check is needed?The text was updated successfully, but these errors were encountered: