Skip to content

Commit

Permalink
GH-2006 Check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Dec 21, 2023
1 parent cb83d8f commit 2ba8a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ class producer_plugin_impl : public std::enable_shared_from_this<producer_plugin

const auto& hb = chain.head_block();
now = fc::time_point::now();
if (hb->timestamp.next().to_time_point() >= now) {
if (hb && hb->timestamp.next().to_time_point() >= now) {
_production_enabled = true;
}

Expand Down

0 comments on commit 2ba8a1a

Please sign in to comment.