equal
deleted
inserted
replaced
813 */ |
813 */ |
814 public Set<String> getCommands() { |
814 public Set<String> getCommands() { |
815 final Set<String> res = new HashSet<String>(); |
815 final Set<String> res = new HashSet<String>(); |
816 if (commandProviders != null) { |
816 if (commandProviders != null) { |
817 for (final CommandProvider cp : commandProviders) { |
817 for (final CommandProvider cp : commandProviders) { |
818 res.addAll(cp.getAvailableCommands(this)); |
818 if(cp.getAvailableCommands(this) != null) |
|
819 res.addAll(cp.getAvailableCommands(this)); |
819 } |
820 } |
820 } |
821 } |
821 res.addAll(commands.keySet()); |
822 res.addAll(commands.keySet()); |
822 return Collections.unmodifiableSet(res); |
823 return Collections.unmodifiableSet(res); |
823 } |
824 } |