1
0
Fork 0
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:
Sergey Prigogin 2011-03-07 02:55:03 +00:00
parent a6a7c95f71
commit a7a8d608fa

View file

@ -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));