diff --git a/src/infrastructure/daemon/irc/handler/macro/PhabricatorIRCMacroHandler.php b/src/infrastructure/daemon/irc/handler/macro/PhabricatorIRCMacroHandler.php index 5c9ba3ce63..78a2d78723 100644 --- a/src/infrastructure/daemon/irc/handler/macro/PhabricatorIRCMacroHandler.php +++ b/src/infrastructure/daemon/irc/handler/macro/PhabricatorIRCMacroHandler.php @@ -39,7 +39,10 @@ final class PhabricatorIRCMacroHandler extends PhabricatorIRCHandler { $macros = $this->getConduit()->callMethodSynchronous( 'macro.query', array()); - + // gotta bail if we failed to fetch the macros + if ($macros === null) { + return false; + } $this->macros = $macros; $regexp = array();