Skip to content

Commit b581977

Browse files
committed
Ignore additional parameter
Currently if one passes more parameters as the command accepts (e.g. a parameter was removed from the command), this suddenly leads to commands no longer being found as null is returned. Instead now ignore additional parameters and simply continue the loop over the map.
1 parent ca298d6 commit b581977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/ParameterizedCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public static ParameterizedCommand generateCommand(Command command, Map paramete
311311
IParameter parameter = command.getParameter(key);
312312
// if the parameter is defined add it to the parameter list
313313
if (parameter == null) {
314-
return null;
314+
continue;
315315
}
316316
ParameterType parameterType = command.getParameterType(key);
317317
if (parameterType == null) {

0 commit comments

Comments
 (0)