harmony-one / harmony

The core protocol of harmony
https://harmony.one
GNU Lesser General Public License v3.0
1.47k stars 289 forks source link

Fix fast sync null snapshot and null response issue #4613

Closed GheisMohammadi closed 9 months ago

GheisMohammadi commented 9 months ago

Issue

If a snapshot is not available, the client receives null for snapshots and attempts to call methods on a null instance. This pull request addresses the issue of null snapshots and null responses in fast sync by checking and validating values.