prevent possible NPE in shell tab completion

This commit is contained in:
Doug MacEachern 2006-06-19 17:50:56 +00:00
parent b279cfa785
commit 2f70f23fcd
1 changed files with 2 additions and 2 deletions

View File

@ -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(".");