src/main/java/org/vaadin/console/Console.java
changeset 12 f3f82a361e62
parent 11 370ee982fe40
child 14 f6b22b2ab1b9
equal deleted inserted replaced
11:370ee982fe40 12:f3f82a361e62
   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     }