prevent possible NPE in shell tab completion
This commit is contained in:
		
							parent
							
								
									b279cfa785
								
							
						
					
					
						commit
						2f70f23fcd
					
				@ -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(".");
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user