awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
921 stars 266 forks source link

added check for observer being null #735

Closed simon-q closed 1 year ago

simon-q commented 1 year ago

Issue #, if available: https://github.com/awslabs/aws-mobile-appsync-sdk-js/issues/688

Description of changes: Code does not check whether observer is null or undefined which sometimes happen. I added a check similar to the checks being done earlier in the same function.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.