Fix #877 - nullderef in cmd_info