Skip to content

Commit 723998e

Browse files
committed
Land rapid7#4425, jobs tab completion NilClass fix
2 parents 153d7e2 + 400bd9a commit 723998e

File tree

1 file changed

+1
-1
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+1
-1
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ def cmd_jobs_tabs(str, words)
873873
return @@jobs_opts.fmt.keys
874874
end
875875

876-
if @@jobs_opts.fmt[words[1]][0] and (words.length == 2)
876+
if words.length == 2 and (@@jobs_opts.fmt[words[1]] || [false])[0]
877877
return framework.jobs.keys
878878
end
879879

0 commit comments

Comments
 (0)