diff --git a/app/Console/Commands/Debug/PacketDump.php b/app/Console/Commands/Debug/PacketDump.php index a5e8610..8955722 100644 --- a/app/Console/Commands/Debug/PacketDump.php +++ b/app/Console/Commands/Debug/PacketDump.php @@ -49,6 +49,11 @@ class PacketDump extends Command throw new \Exception('Unknown type: '.$this->argument('type')); } + if (is_null($pkt)) { + $this->info(sprintf('No packet for [%s] of type [%s]',$this->argument('ftn'),$this->argument('type'))); + return self::SUCCESS; + } + if (! $this->argument('file')) { $this->info('Item Name:'.$pkt->name); $this->info('Item Type:'.get_class($pkt));