Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.25k stars 1.93k forks source link

Azure Redis Checkpoint Store Samples Issue #40921

Open Menghua1 opened 4 days ago

Menghua1 commented 4 days ago

Section link:

image

Reason: java.lang.NullPointerException: 'processError' cannot be null.

Suggestion: Add code

            .processEvent(eventContext -> {
                System.out.println("Partition id = " + eventContext.getPartitionContext().getPartitionId() + " and "
                    + "sequence number of event = " + eventContext.getEventData().getSequenceNumber());
            })
            .processError(context -> {
                System.out.println("Error occurred while processing events " + context.getThrowable().getMessage());
            })

@sandeep-sen, @josefree, @ronniegeraghty, @jsquire and @ahsonkhan for notification.