mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed a compiler warning.
This commit is contained in:
parent
a6a7c95f71
commit
a7a8d608fa
1 changed files with 11 additions and 10 deletions
|
@ -69,7 +69,8 @@ public class Process {
|
||||||
ProcessParameter param = params[i];
|
ProcessParameter param = params[i];
|
||||||
boolean childrenRemain = childIndex < children.size();
|
boolean childrenRemain = childIndex < children.size();
|
||||||
Element child = (childrenRemain ? children.get(childIndex) : null);
|
Element child = (childrenRemain ? children.get(childIndex) : null);
|
||||||
if (param.isExternal() && (!childrenRemain || !param.getName().equals(child.getAttribute(ProcessArgument.ELEM_NAME)))) {
|
if (param.isExternal() &&
|
||||||
|
(child == null || !param.getName().equals(child.getAttribute(ProcessArgument.ELEM_NAME)))) {
|
||||||
list.add(new ProcessArgument(templateCore, param));
|
list.add(new ProcessArgument(templateCore, param));
|
||||||
} else if (childrenRemain) {
|
} else if (childrenRemain) {
|
||||||
list.add(new ProcessArgument(templateCore, child));
|
list.add(new ProcessArgument(templateCore, child));
|
||||||
|
|
Loading…
Add table
Reference in a new issue