From 2f70f23fcdb48fdfa8ae338dfee4959333371dec Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 19 Jun 2006 17:50:56 +0000 Subject: [PATCH] prevent possible NPE in shell tab completion --- bindings/java/src/net/hyperic/sigar/cmd/PTQL.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/cmd/PTQL.java b/bindings/java/src/net/hyperic/sigar/cmd/PTQL.java index efee7039..c60ee06c 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/PTQL.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/PTQL.java @@ -58,12 +58,12 @@ public class PTQL String attr = line.substring(ix+1, line.length()); Method method = (Method)this.methods.get(attrClass); - Class subtype = method.getReturnType(); - if (method == null) { return line; } + Class subtype = method.getReturnType(); + boolean isSigarClass = ProcessQueryBuilder.isSigarClass(subtype); int ix2 = attr.indexOf(".");