Fix CheckType parsing for "ncp top".

This commit is contained in:
asofold 2014-07-30 22:23:23 +02:00
parent 6b71692a40
commit 07af2f687a

View File

@ -176,7 +176,7 @@ public class TopCommand extends BaseCommand{
type = CheckType.valueOf(args[i].trim().toUpperCase().replace('-', '_').replace('.', '_'));
} catch (Throwable t) {} // ...
if (type != null) {
checkTypes.addAll(APIUtils.getChildren(type)); // Includes type.
checkTypes.addAll(APIUtils.getWithChildren(type)); // Includes type.
}
}
if (checkTypes.isEmpty()) {